Does anyone have suggestions for interacting with the QuickBooks Online API via Laravel with PHP 7.1? I have wasted pretty much an entire week trying to pull together bits and pieces of information. I finally have ngrok working with Homestead (another story) to be able to test the required oAuth 1.0 handshake.
Research led me to believe that the best option was to use the consolibyte/quickbooks-php package. I have tried implementing it following directions like this post and this one, and also had hopes for this Laravel wrapper. The problem is that the quickbooks-php package uses mcrypt, and therefore won’t work on PHP 7.1. I tried installing mcrypt for PHP 7.1. It made a bunch of changes to my Homestead VM but still won’t work. And even if I can get it working locally, I have to deploy to a somewhat locked down CentOS server, so I don’t know what challenges would await there.
Sorry for the rant; I’m just about to the point of either trying to implement something from scratch OR trying to obtain my oAuth token independently, as the only current requirements are to create invoices and customers on QBO via scheduled artisan commands.
I'm running Ubuntu 16.04, with PHP 7.0 and nginx. I was able to get things to work after installing the php 7.0 mcrypt extension, and restarting php fpm: