John Pantoja writes on the Infusionsoft Community Forum:
“After much fiddling around and pulling my hair, I have created a “tool” that will help to speed up adoption of the new PHP SDK and therefore OAuth.
The best part of it? It does the hard work for you! Just pop my tool above or in a folder where you have legacy code, run it and it’s done. Well, not entirely done. What I have left out is the “OAuth Texas Two Step”. I have decided to not implement this just yet as if I do, you won’t have the benefit of getting to know the process.
So at this point you may be asking yourself, what’s the catch, how much is this going to cost me? Well, there is no catch, there is no cost. I’ve decided to give this code to the community, though if you do wish to “pay” something, I have included a note about that in the readme file.
Without further adieu, the tool can be found on GitHub here: https://github.com/john-pantoja/old2new