infusionsoft / infusionsoft-php

PHP client library for the Infusionsoft API.
https://developer.infusionsoft.com/
Other
130 stars 128 forks source link

README needs some updating #289

Open Ultimater opened 3 years ago

Ultimater commented 3 years ago

The README shows if(empty(session_id();)) session_start(); and contains an extra semicolon surrounded by parenthesis which will cause a syntax error. This can cost people a lot of time trying to find the error, thinking it's the code they added, not realizing the documentation put a stumbling block in front of them.

Probably could update some other things in the documentation as well. Maybe mention version 1.5 requires PHP 7.3+ and supports PHP 8. And maybe mention how to use $infusionsoft->refreshAccessToken() once they have storage set up.