mattapril / laravel-responsable-reports
Library for easily converting reports into various HTTP responses
v1.4.1
2024-05-02 18:56 UTC
Requires
- php: >=7.0
- illuminate/contracts: ^5.5|^6|^7|^8|^9|^10|^11
- illuminate/routing: ^5.5|^6|^7|^8|^9|^10|^11
- illuminate/support: ^5.5|^6|^7|^8|^9|^10|^11
Requires (Dev)
- laravel/framework: ^11.0
- orchestra/testbench: ^9
- phpunit/phpunit: ^10.5
README
composer require mattapril/laravel-responsable-reports
For Lumen Projects
$this->app->singleton('Illuminate\Contracts\Routing\ResponseFactory', function ($app) {
return new \Illuminate\Routing\ResponseFactory(
$app['Illuminate\Contracts\View\Factory'],
$app['Illuminate\Routing\Redirector']
);
});
Configuration
optional .env configuration:
REPORT_PER_PAGE_KEY=per_page # define the input key that can be used to dynamically set the results per page for paginated responses
REPORT_PER_PAGE_MAX=100 # sets the maximum number of results per page when using REPORT_PER_PAGE_KEY (default is 100)