Download the PHP package chris-moreton/oauth-server-php-client without Composer
On this page you can find all versions of the php package chris-moreton/oauth-server-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chris-moreton/oauth-server-php-client
More information about chris-moreton/oauth-server-php-client
Files in chris-moreton/oauth-server-php-client
Download chris-moreton/oauth-server-php-client
More information about chris-moreton/oauth-server-php-client
Files in chris-moreton/oauth-server-php-client
Vendor chris-moreton
Package oauth-server-php-client
Short Description API Wrapper for the Netsensia authentication server
License MIT
Package oauth-server-php-client
Short Description API Wrapper for the Netsensia authentication server
License MIT
Please rate this library. Is it a good library?
Informations about the package oauth-server-php-client
oAuth2 Server PHP Client
This is a PHP client for the Netsensia authentication server (chris-moreton/oauth-server).
Add to project using Composer
composer require chris-moreton/oauth-server-php-client
Usage
$client = new Client($apiUri, $token);
oAuth2 Password grant
$response = $client->passwordGrant($email, $password, $clientId, $clientSecret, $scope)
Client Credentials Grant
$response = $client->clientGrant($clientId, $clientSecret, $scope)
Password Check
$response = $client->verifyPassword($email, $password)
Create User
$response = $client->createUser(['email'=>'[email protected]', 'name'=>'Test', 'password'=>'secret'])
Get User Details
$response = $client->getUserDetails($userId)
Update User
$response = $client->updateUserDetails($userId, ['email'=>'[email protected]', 'name'=>'Test', 'password'=>'secret', 'remember_token'=>'abcd1234'])
Get User Token Details
$response = $client->userTokenDetails()
Get Scopes from Client Credentials Token
$response = $client->tokenScopes()
Development
Clone the repo and compose
git clone [email protected]:chris-moreton/oauth-server-php-client
cd oauth-server-php-client
composer install
Run the tests
cp spec/.env.example spec/.env
and fill in the values.
Then you can run the tests:
bin/phpspec run --format=pretty -vvv --stop-on-failure
All versions of oauth-server-php-client with dependencies
PHP Build Version
Package Version
The package chris-moreton/oauth-server-php-client contains the following files
Loading the files please wait ....