Phone.id PHP SDK
This PHP SDK allows you to easily implement the Phone.id authentication on web. To see how it works, please take a look at examples/authentication., (*1)
What's Phone.id?
Phone.id is a service that makes "login with your mobile number" so easy that hurts., (*2)
Composer
This library is installable via Composer. To include it in your projects, run the following command:, (*3)
composer require pracucci/phoneid-php-sdk, (*4)
How to register an app
To register an app and get Phone.id credentials, you should:, (*5)
- Login to https://developer.phone.id with your mobile phone
- Create a new app and get client id and secret
Contributing
Run tests before pushing a pull request:, (*6)
bash
phpunit --bootstrap src/PhoneId/autoload.php tests, (*7)
License
MIT, (*8)
Changes
0.0.2 (2015-09-22)
- Update the SDK to support new endpoints
- Added
PhoneId::exchangeAuthorizationCode() method to exchange an authorization code with an access token
- Fix: POST request content-encoding should be
application/x-www-form-urlencoded
- Fix:
PhoneIdClient didn't throw exceptions successfully on errors
0.0.1 (2015-08-10)
- Server-side authentication support (see
examples/authentication)
- Installable via Composer (psr-4 autoloader)