matthiasmullie / php-api-oauth
OAuth API
Requires
- php: ^7.0
- ext-json: *
- ext-pdo: *
- guzzlehttp/psr7: ^1.4
- matthiasmullie/path-converter: ^1.1.2
- matthiasmullie/php-api: ^1.0
- php-http/guzzle6-adapter: ^1.1
- php-http/message: ^1.7
- stampie/stampie: ^1.0
- symfony/yaml: ^3.2|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.0
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-08 22:54:30 UTC
README
This repository is a simple authentication API, providing only the endpoints to create/edit/get accounts & applications. It's an easy starting point for any such API, but you'll have to add the other domain-specific details yourself - an API that does nothing other than accounts & applications isn't too useful, right?
Code
Just clone this project and use/enrich/change it to your needs.
git clone matthiasmullie/php-api-oauth
Configuration
config/config.yml
This one holds information on the root app, the database & mailer credentials & supported scopes.
config/routes.yml
This one holds the routes to the API controllers, the expected parameters & responses.
Docker & Travis CI
In order to quickly get your API running on your local machine (or anything supporting Docker images), just build the docker-compose suite by issuing this makefile command:
make test
With the included .travis.yml config, you should have those tests on Travis CI in no time!