Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yabhq/flightdeck
Level up your Laravel API
https://github.com/yabhq/flightdeck
api laravel php token
Last synced: 29 days ago
JSON representation
Level up your Laravel API
- Host: GitHub
- URL: https://github.com/yabhq/flightdeck
- Owner: yabhq
- License: mit
- Created: 2019-04-05T14:33:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T13:31:18.000Z (4 months ago)
- Last Synced: 2024-11-01T10:07:59.886Z (about 2 months ago)
- Topics: api, laravel, php, token
- Language: PHP
- Homepage:
- Size: 237 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# FlightDeck - Level up your Laravel API
[![Latest Version on Packagist](https://img.shields.io/packagist/v/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)
[![CircleCI](https://img.shields.io/circleci/project/github/yabhq/flightdeck/master.svg)](https://circleci.com/gh/yabhq/flightdeck)
[![Quality Score](https://img.shields.io/scrutinizer/g/yabhq/flightdeck.svg?style=flat-square)](https://scrutinizer-ci.com/g/yabhq/flightdeck)
[![Total Downloads](https://img.shields.io/packagist/dt/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)## Installation
You can install the package via composer:
```bash
composer require yabhq/flightdeck
```## Usage
Generate new API key for authorization
```bash
php artisan flightdeck:generate app1
```List all available API keys
```bash
php artisan flightdeck:list
```## Multi-Auth
FlightDeck makes authenticating users with multiple guards a breeze.
Suppose you wish to add support for login, logout and token refreshing for a hypothetical "customer" user type.
Simply extend the FlightDeck `AuthController` class as follows:
```php
guard('customer');
}
}
```You can also extend `FlightDeckForgotPasswordController` and `FlightDeckResetPasswordController` in a similar way.
## Testing
``` bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email us instead of using the issue tracker.
## Credits
- [Chris Blackwell](https://github.com/chrisblackwell)
- [Jim Hlad](https://github.com/jimhlad)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.