atukai / at-php-settings
A ZF2 module for managing php settings.
Installs: 10 393
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 1
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2022-09-30 09:29:18 UTC
README
A ZF2 module for configuring a php settings.
Requirements
Features
- Global, per controller, and per route configuration of php.ini settings
- Zend Developer Tools Collector
Installation
- 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.
Configuration
To configure the php settings as you required, add the following to your config/autoload/global.php file:
'php_settings' => [ 'display_startup_errors' => false, 'display_errors' => true, 'max_execution_time' => 30, 'date.timezone' => 'UTC', 'controllers' => [ 'Application\Controller\Index' => [ 'memory_limit' => '64M', ], ], 'routes' => [ 'home' => [ 'memory_limit' => '32M', 'max_execution_time' => '60', ], ], ]