Version 1.1.0
A ZF2 module for configuring a php settings.
- Global, per controller, and per route configuration of php.ini settings
- Zend Developer Tools Collector
- Add
"atukai/at-php-settings": "dev-master"
to yourcomposer.json
file and runphp composer.phar update
. - Add
AtPhpSettings
to yourconfig/application.config.php
file under themodules
key.
To configure the php settings as you required, add the following to your config/autoload/global.php file:
'php_settings' => array(
'display_startup_errors' => false,
'display_errors' => true,
'max_execution_time' => 30,
'date.timezone' => 'UTC',
'controllers' => array(
'Application\Controller\Index' => array(
'memory_limit' => '64M',
),
),
'routes' => array(
'home' => array(
'memory_limit' => '32M',
'max_execution_time' => '60',
),
),
)
Add additional configuration keys as needed.