atukai/at-php-settings

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (1.1.1) of this package.

A ZF2 module for managing php settings.

1.1.1 2015-09-30 08:27 UTC

This package is auto-updated.

Last update: 2022-09-30 09:29:18 UTC


README

A ZF2 module for configuring a php settings.

Scrutinizer Quality Score

Requirements

Features

  • Global, per controller, and per route configuration of php.ini settings
  • Zend Developer Tools Collector

Installation

  1. Add "atukai/at-php-settings": "dev-master" to your composer.json file and run php composer.phar update.
  2. Add AtPhpSettings to your config/application.config.php file under the modules 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',
        ],
    ],
]