Download the PHP package aliirfaan/citronel-core without Composer
On this page you can find all versions of the php package aliirfaan/citronel-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aliirfaan/citronel-core
More information about aliirfaan/citronel-core
Files in aliirfaan/citronel-core
Package citronel-core
Short Description This package provides starter configuration and helper functions for laravel API projects.
License MIT
Informations about the package citronel-core
Citronel core
Boilerplate to start laravel API project.
Features
- Base configuration.
- Base controller.
- Helper service.
- Traits.
Requirements
Installation
-
Install the package using composer:
- Publish files with:
or by using only php artisan vendor:publish and select the aliirfaan\CitronelCore\CitronelCoreProvider from the outputted list.
Configurations
-
citronel Base configuration
- citronel-cahce Base cache configuration
Traits
-
CitronelApiControllerTrait
Use this trait to send API responses with headers. -
CitronelCacheTrait
Use this trait to cache responses. -
CitronelCorrelationTokenTrait
Use this trait to work with correlation token. -
CitronelDateTimeTrait
Use this trait to work with date time. -
CitronelMoneyTrait
Use this trait to work money/amounts. - resultFormatTrait
Use this trait to get return format for function calls.
Controllers
- CitronelController
Base controller.
Middleware
- CitronelCorrelationToken
Get correlation token in header based on a configurable header key.
Services
- CitronelHelperService
Base helper service.
Usage
-
You can use traits in your custom helper service and then use your custom helper service in your controllers
-
Example cache config
- Example controller
All versions of citronel-core with dependencies
ext-bcmath Version *
aliirfaan/laravel-simple-api Version ^7.0.0
aliirfaan/laravel-simple-audit-log Version ^10.0.0
aliirfaan/citronel-error-catalogue Version ^2.0.0
laravel/framework Version ^13.0