Cakephp new conection to xero without sdk

I have heard about a new way to connect to xero from cakephp without using sdk
Is there an easier way to connect as currently you need xero app with call backs, client/secret key, and refresh/access token after a implementation of the below actually works