atukai / php-settings-middleware
There is no license information available for the latest version (dev-master) of this package.
PHP settings managing middleware
dev-master
2016-10-05 13:52 UTC
Requires
- php: ^5.6 || ^7.0
This package is auto-updated.
Last update: 2024-12-07 04:23:04 UTC
README
Managing php settings.
Installation
composer require atukai/php-settings-middleware
Configuration
To configure the php settings as you required, add the following to your config file
under php_setting
key:
'php_settings' => [ 'display_startup_errors' => false, 'display_errors' => true, 'max_execution_time' => 30, 'date.timezone' => 'UTC', 'routes' => [ 'home' => [ 'memory_limit' => '32M', 'max_execution_time' => '60', ], ], ]
Add factory to container config
'dependencies' => [
'factories' => [
...
\At\PhpSettings\PhpSettingsMiddleware::class => \At\PhpSettings\PhpSettingsMiddlewareFactory::class,
...
],
],
Add the middleware to the pipeline
'middleware' => [
...
\At\PhpSettings\PhpSettingsMiddleware::class,
...
],
PHP Ini Configurations
For more details of PHP ini configurations see