PHPackages                             struggle-for-php/sfp-infection-mutator - 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. struggle-for-php/sfp-infection-mutator

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

struggle-for-php/sfp-infection-mutator
======================================

Mutator for Infection

0.0.3(6y ago)031BSD-3-ClausePHPPHP &gt;=7.3CI failing

Since Aug 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/struggle-for-php/sfp-infection-mutator)[ Packagist](https://packagist.org/packages/struggle-for-php/sfp-infection-mutator)[ RSS](/packages/struggle-for-php-sfp-infection-mutator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

struggle-for-php/sfp-infection-mutator
======================================

[](#struggle-for-phpsfp-infection-mutator)

Mutators for infection `PHP Mutation Testing Framework`

Mutators
--------

[](#mutators)

### PregMatchIsNumeric

[](#pregmatchisnumeric)

- Replaces "preg\_match('/\\A\[0-9\]+\\z/', '-0.12');" with "is\_numeric('-0.12');"

### UnwrapStrReplace

[](#unwrapstrreplace)

Install
-------

[](#install)

```
composer require --dev struggle-for-php/sfp-infection-mutator
```

### Setting at your `infection.json`

[](#setting-at-your-infectionjson)

```
{
    "mutators": {
        "@default": true,
        "Sfp\\Infection\\Mutator\\Regex\\PregMatchIsNumeric": {},
        "Sfp\\Infection\\Mutator\\Unwrap\\UnwrapStrReplace": {}
    }
}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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 ~4 days

Total

3

Last Release

2508d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.2

0.0.2PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4eed2726ad1fce689a99672d965d8b4a387f030f08290e00708b66e4621139d2?d=identicon)[sasezaki](/maintainers/sasezaki)

---

Top Contributors

[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (21 commits)")

---

Tags

infectionmutatormutantmutatorInfectionis\_numeric

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/struggle-for-php-sfp-infection-mutator/health.svg)

```
[![Health](https://phpackages.com/badges/struggle-for-php-sfp-infection-mutator/health.svg)](https://phpackages.com/packages/struggle-for-php-sfp-infection-mutator)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.2k](/packages/infection-infection)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k921.0M1.6k](/packages/phpunit-php-code-coverage)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k100.2M2.1k](/packages/behat-behat)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.9k80.5M7.5k](/packages/vimeo-psalm)[sebastian/lines-of-code

Library for counting the lines of code in PHP source code

1.2k555.5M16](/packages/sebastian-lines-of-code)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9184.1M24](/packages/phparkitect-phparkitect)

PHPackages © 2026

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