https://github.com/softonic/oauth2-provider
Softonic OAuth2 provider
https://github.com/softonic/oauth2-provider
Last synced: about 1 year ago
JSON representation
Softonic OAuth2 provider
- Host: GitHub
- URL: https://github.com/softonic/oauth2-provider
- Owner: softonic
- License: other
- Created: 2017-08-16T10:40:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T14:15:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T19:39:49.166Z (about 1 year ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
Softonic OAuth2 Provider
=====
[](https://github.com/softonic/oauth2-provider/releases)
[](LICENSE.md)
[](https://github.com/softonic/oauth2-provider/actions/workflows/build.yml)
[](https://packagist.org/packages/softonic/oauth2-provider)
[](http://isitmaintained.com/project/softonic/oauth2-provider "Average time to resolve an issue")
[](http://isitmaintained.com/project/softonic/oauth2-provider "Percentage of issues still open")
This package provides Softonic OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
Installation
-------
You can require the last version of the package using composer
```bash
composer require softonic/oauth2-provider
```
### Configuration
```php
'myClient',
'clientSecret' => 'mySecret'
];
$client = new Softonic\OAuth2\Client\Provider\Softonic($options);
$token = $client->getAccessToken('client_credentials', ['scope' => 'myscope']);
```
Testing
-------
`softonic/oauth2-provider` has a [PHPUnit](https://phpunit.de) test suite, and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).
To run the tests, run the following command from the project folder.
``` bash
$ make tests
```
To open a terminal in the dev environment:
``` bash
$ make debug
```
License
-------
The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.