PHPackages                             webforge/configuration-tester - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. webforge/configuration-tester

ActiveLibrary[Testing &amp; Quality](/categories/testing)

webforge/configuration-tester
=============================

test your php configuration from cli or unit tests

1.0.0(11y ago)0125MITPHP

Since Sep 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/webforge-labs/webforge-configuration-tester)[ Packagist](https://packagist.org/packages/webforge/configuration-tester)[ RSS](/packages/webforge-configuration-tester/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

webforge-configuration-tester [![Build Status](https://camo.githubusercontent.com/c3d88367a1715b7950a68218fbdc159b525cd5bd6aa53bb29d55c2e9cd08d600/68747470733a2f2f7472617669732d63692e6f72672f776562666f7267652d6c6162732f776562666f7267652d636f6e66696775726174696f6e2d7465737465722e737667)](https://travis-ci.org/webforge-labs/webforge-configuration-tester) [![Latest Stable Version](https://camo.githubusercontent.com/103565e11793342f27de6dca8547bc5abfc0e8beed637f710d6c94cdbd490348/68747470733a2f2f706f7365722e707567782e6f72672f776562666f7267652f636f6e66696775726174696f6e2d7465737465722f762f737461626c652e737667)](https://packagist.org/packages/webforge/configuration-tester)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#webforge-configuration-tester--)

test your php configuration from cli or unit tests The ConfigurationTester is able to check configuration of the environment (currently PHP-ini values) to a set of fixed values. The php.ini settings can be received through the ConfigurationRetriever (for example from a apache dump-script).

```
use Webforge\Setup\ConfigurationTester;

$t = new ConfigurationTester();
$t->INI('mbstring.internal_encoding', 'utf-8');
```

You can use several operators to compare values

```
$t->INI('post_max_size','2M', '>=');
$t->INI('post_max_size',1024, 'INI('post_max_size',2*1024*1024);
$t->INI('post_max_size','2M');
```

You can use the ConfigurationTester to test your webserver (or other remotes) PHP-ini values:

```
use Webforge\Setup\ConfigurationTester;
use Webforge\Setup\RemoteConfigurationRetriever;

$t = new ConfigurationTester(new RemoteConfigurationRetriever('http://localhost:80/dump-inis.php'));
```

put dump-inis.php into webroot with this contents:

```

```

You can get the results of the checks, with retrieving the defects. They are instances from ConfigurationDefect Class and can be converted to String to verbose their failure:

```
if (count($t->getDefects()) > 0) {
  throw new \RuntimeException('Please check your Config: '.implode("\n", $t->getDefects()));
}
```

You could get nicer formatted output with the ConfigurationTester::\_\_toString(). This may change in the future for a ConfigurationTesterPrinter or something..

```
print $t;
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc659f3d1fe2fd98e62c9ac16965126a8b2c7f3fe7fad3b7c6c5f548c46e0c27?d=identicon)[pscheit](/maintainers/pscheit)

---

Top Contributors

[![pscheit](https://avatars.githubusercontent.com/u/488189?v=4)](https://github.com/pscheit "pscheit (9 commits)")

### Embed Badge

![Health badge](/badges/webforge-configuration-tester/health.svg)

```
[![Health](https://phpackages.com/badges/webforge-configuration-tester/health.svg)](https://phpackages.com/packages/webforge-configuration-tester)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[pdepend/pdepend

Official version of pdepend to be handled with Composer

954110.9M815](/packages/pdepend-pdepend)[instaclick/php-webdriver

PHP WebDriver for Selenium 2

43761.8M22](/packages/instaclick-php-webdriver)

PHPackages © 2026

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