pepperlabs / pepper
Pepper is a auto-generate GraphQL API for Laravel
Requires
- php: ^7.3|^8.0
- ext-json: *
- doctrine/dbal: ^3.0
- haydenpierce/class-finder: ^0.4.2
- illuminate/support: ^8.0
- laravel/legacy-factories: ^1.1
- opis/closure: ^3.5
- rebing/graphql-laravel: ^6.1
- tymon/jwt-auth: ^1.0
Requires (Dev)
- ext-pdo_sqlite: *
- brianium/paratest: ^6.1
- mockery/mockery: ^1.3.1
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Install via composer:
composer require pepperlabs/pepper
Pepper is an automatic GraphQL exposing Laravel package. It uses your application defined models to auto define properties and relations. It supports Query and Mutation out of the box.
features:
- Customizable validation, authentication, and authorization
- Optional JWT support for protecting routes including login, register, forget password and reset password
- Support all Laravel Eloquent databases (SQLite, MySQL, PostgreSQL, SQLServer)
Please note that this repo is still a work-in-progress project.
Version support
PHP: 8.1
Laravel: 9.x
Supported databases
As it uses Laravel Eloquent only, it can support all supported Laravel ORM such as: SQLite, MySQL, PostgreSQL and, SQLServer.
If you discover a security vulnerability within Pepper, please send an e-mail to Amirmasoud Sheydaei via amirmasoud.sheydaei@gmail.com. All security vulnerabilities will be promptly addressed.
Contributing
Testing
Run PHPStan:
analyse
composer analyse
test
composer test
test-coverage
composer test-coverage
format
composer format
License
The MIT License (MIT). Please see License File File for more information.