nycorp / lite-api
The skeleton application for the Laravel framework.
1.1.33
2024-11-23 10:08 UTC
Requires
- php: ^8.0
- bennett-treptow/laravel-migration-generator: ^4.4
- darkaonline/l5-swagger: ^8.5
- dcarbone/php-consul-api: ^2.0
- netflie/laravel-notification-whatsapp: ^1.3
- netflie/whatsapp-cloud-api: ^2.2
- reliese/laravel: ^1.2
- tymon/jwt-auth: ^2.1
Requires (Dev)
- laravel/pint: ^1.14
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.10
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
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)} ");