This package provides VATSIM Connect support for the PHP League's OAuth 2.0 Client.
To use this package, it will be necessary to have a VATSIM Connect client ID and client secret.
Please follow the VATSIM Connect instructions to create the required credentials.
To install, use composer:
composer require vatsim/oauth2-vatsimUsage is the same as The League's OAuth client, using \Vatsim\OAuth2\Client\Provider\Vatsim as the provider.
The Vatsim provider has the following options:
domainallows for switching between the prod or dev Connect instance (default:https://auth.vatsim.net)
At time of writing, available scopes are:
full_name- Full name (first and last)email- Email addresscountry- Residence countryvatsim_details- VATSIM pilot rating, ATC rating, region, division, sub-division
Tests can be run with:
composer testStyle checks can be run with:
composer lintPlease see CONTRIBUTING.md for details.
The MIT License (MIT). Please see the License File for more information.