PHPackages                             webjawns/webjawns-php-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webjawns/webjawns-php-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webjawns/webjawns-php-config
============================

Allows setting of php.ini options per controller, per route, and globally in ZF2

212PHP

Since Jan 6Pushed 12y ago2 watchersCompare

[ Source](https://github.com/webjawns/WebjawnsPhpConfig)[ Packagist](https://packagist.org/packages/webjawns/webjawns-php-config)[ RSS](/packages/webjawns-webjawns-php-config/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Webjawns PHP Configuration
==========================

[](#webjawns-php-configuration)

Webjawns PHP Configuration () is a Zend Framework 2 module allowing global, per controller, and per route configuration of `php.ini` options using a standard configuration file. For example, developers can set a global memory limit, while increasing or decreasing it to meet a particular route or controller's requirements. The same applies to any other INI option (e.g. max\_execution\_time, max\_input\_vars, etc.).

Priority
========

[](#priority)

If the same INI option is defined for a route and controller, as well as globally, the route option takes precedence. If the same INI option is defined globally and for a controller, the controller option takes precedence. The priorities are as follows, with the first position having precedence:

1. Route
2. Controller
3. Global

Installation
============

[](#installation)

1. Install the module via Composer by running:

    ```
    php composer.phar require webjawns/webjawns-php-config:dev-master
    ```

    or download it directly from GitHub and copy it to your application's `module/` directory.
2. Add the `WebjawnsPhpConfig` module to the modules section of `config/application.config.php`.
3. Create or edit an autoloaded configuration file and customize your `php.ini` options.

    ```
    return array(
        'webjawns_php_config' => array(
            // Whether to throw a RuntimeException if ini_set() returns false
            'throw_exception_on_failure' => true,

            'display_errors'     => '1',
            'date.timezone'      => 'UTC',
            'max_execution_time' => '15',
            'memory_limit'       => '16M',

            'controllers' => array(
                'Application\Controller\Index' => array(
                    'memory_limit' => '64M',
                ),
            ),

            'routes' => array(
                'home' => array(
                    'memory_limit'       => '32M',
                    'max_execution_time' => '30',
                ),
            ),
        ),
    );

    ```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/78e94776289ff3cd773de042b50d20d8526bba0c7deb717207d7648701def86c?d=identicon)[cstrosser](/maintainers/cstrosser)

---

Top Contributors

[![cstrosser](https://avatars.githubusercontent.com/u/1592584?v=4)](https://github.com/cstrosser "cstrosser (7 commits)")

### Embed Badge

![Health badge](/badges/webjawns-webjawns-php-config/health.svg)

```
[![Health](https://phpackages.com/badges/webjawns-webjawns-php-config/health.svg)](https://phpackages.com/packages/webjawns-webjawns-php-config)
```

###  Alternatives

[snicco/better-wp-hooks

1118.6k2](/packages/snicco-better-wp-hooks)[thalidzhokov/exchange-rates-cbrf

ExchangeRatesCBRF Class to get exchange rates of the Central Bank of Russia

102.7k](/packages/thalidzhokov-exchange-rates-cbrf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
