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

ActiveLibrary

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 yesterday

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 19% 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

2460d 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.2k26.2M1.8k](/packages/infection-infection)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[cviebrock/eloquent-typecast

Trait for Eloquent models to force type-casting on retrieved values

2468.0k](/packages/cviebrock-eloquent-typecast)[event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes DataMapper, SimpleDto/LiteDto, DataAccessor/Mutator/Filter and helper classes (MathHelper, EnvHelper, etc.). Works with Laravel, Symfony/Doctrine or standalone PHP.

1421.5k](/packages/event4u-data-helpers)[giordanolima/decimal-mutators

Add a short way to create accessors and mutators for decimal fields

151.0k](/packages/giordanolima-decimal-mutators)

PHPackages © 2026

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