git clone https://github.com/SocialFlowDev/socialflow-api-example/
cd php
composer install
php sf-ouath-example.php #Then follow the onscreen instructions.
This example uses the 'carlos-mg89/oauth' package. It is documented here: https://github.com/carlos-mg89/PHPoAuthLib/tree/master