PHPackages                             php-platform/mock-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. [Testing &amp; Quality](/categories/testing)
4. /
5. php-platform/mock-config

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

php-platform/mock-config
========================

v0.1.3(9y ago)02.5k5PHPPHP &gt;=5.3

Since Dec 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PHPPlatform/mock-config)[ Packagist](https://packagist.org/packages/php-platform/mock-config)[ Docs](https://github.com/PHPPlatform/mock-config)[ RSS](/packages/php-platform-mock-config/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (5)

PHP Platform Configuration mocking
==================================

[](#php-platform-configuration-mocking)

This package provides APIs to mock the configuration APIs provided by [PHPPlatform/config](https://github.com/PHPPlatform/config)

[![Build Status](https://camo.githubusercontent.com/e73cf376908b7fef6a1894872d056c79a33546a073ffcaccb767793bc1acf268/68747470733a2f2f7472617669732d63692e6f72672f504850506c6174666f726d2f6d6f636b2d636f6e6669672e7376673f6272616e63683d76302e31)](https://travis-ci.org/PHPPlatform/mock-config)

> IMPORTANT NOTE! This package should be used only for developmental purposes and only as [require-dev](https://getcomposer.org/doc/04-schema.md#require-dev) dependency

Usage
-----

[](#usage)

```
PhpPlatform\Mock\Config\MockSettings::setSettings($package, $settingPath, $settingValue )
```

where `$package` is package name , `$settingPath` is the path of the settings to be updated and `$settingValue` is the new value of the setting

Example
-------

[](#example)

*config.json* in package named **phpplatform/mypackage**

```
{
    "logs":{
        "error":"/logs/error.log",
        "debug":"/logs/debug.log"
    }
}
```

to set logs.error to new value

```
PhpPlatform\Mock\Config\MockSettings::setSettings('phpplatform/mypackage','logs.error','/usr/logs/error.log');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~5 days

Total

5

Last Release

3401d ago

PHP version history (2 changes)v0.1.0PHP ~5.3

v0.1.1PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/92306cd4ec1342daeba6fb633880eb9907cdd022874ae39be11ab7ae274171c7?d=identicon)[Raaghu](/maintainers/Raaghu)

---

Top Contributors

[![Raaghu](https://avatars.githubusercontent.com/u/8255650?v=4)](https://github.com/Raaghu "Raaghu (5 commits)")

---

Tags

Settingsconfigmockphp-platform

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)[phake/phake

The Phake mock testing library

4758.0M324](/packages/phake-phake)[kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

1.2k1.2M247](/packages/kahlan-kahlan)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33412.5M350](/packages/brain-monkey)

PHPackages © 2026

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