PHPConfig is a Zend Framework 2 module that allows to set php.ini values on the fly.
Install using composer.
"require": {
"wormhit/PHPConfig": "*"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/wormhit/PHPConfig.git"
}
]
php composer.phar update
config/autoload/php.config.local.php
<?php
return array(
'PHPConfig' => array(
'display_startup_errors' => true,
'display_errors' => true,
'date.timezone' => 'Europe/Berlin',
'mbstring.internal_encoding' => 'UTF-8',
)
);