nycorp / lite-api
The skeleton application for the Laravel framework.
1.1.42
2025-04-02 13:14 UTC
Requires
- php: ^8.0
- darkaonline/l5-swagger: ^8.6
- dcarbone/php-consul-api: ^2.0
- reliese/laravel: ^1.4
- tymon/jwt-auth: ^2.1
Requires (Dev)
- bennett-treptow/laravel-migration-generator: ^4.4
- laravel/pint: ^1.16
- orchestra/testbench: ^9.1
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.11
README
- Log into database and into micro-service
- Swagger documentation using darkaonline/l5-swagger
- Service discovery using dcarbone/php-consul-api
- Jwt auth using tymon/jwt-auth
- SQL to migration using bennett-treptow/laravel-migration-generator
- SQL to model using reliese/laravel
Installation (with Composer)
composer require nycorp/lite-api
Usage
php artisan vendor:publish --provider="Nycorp\LiteApi\Providers\LiteApiServiceProvider"
Logging :
Enable logger to call your remote logger service or log in app database
the default value is false
LOG_REMOTE=false
To enable log service in .env
LOG_CHANNEL=stack LOG_STACK=daily,service_log LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug
use the logger provide by Laravel as usual
Log::info("Delete: started {$this->modelLogger($id)} ");