PHPackages                             efabrica/php-extensions-finder - 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. efabrica/php-extensions-finder

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

efabrica/php-extensions-finder
==============================

Finds PHP extension required by code, can be used in CI

0.9.0(6mo ago)58.4k21PHPPHP ^8.4

Since Dec 3Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/dev-efabrica/php-extensions-finder)[ Packagist](https://packagist.org/packages/efabrica/php-extensions-finder)[ RSS](/packages/efabrica-php-extensions-finder/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (12)Used By (1)

PHP extensions finder
=====================

[](#php-extensions-finder)

This library helps to find PHP extension required by your code, it can be used in CI tools.

Installation
------------

[](#installation)

PHP extension finder requires PHP 7.1.0 or newer. You can install it via Composer. This project is not meant to be run as a dependency, so install it as project:

```
mkdir -p ~/tests/php-extensions-finder
composer require efabrica/php-extensions-finder
```

or globally:

```
composer global require efabrica/php-extensions-finder
```

Usage
-----

[](#usage)

```
~/tests/php-extensions-finder/vendor/bin/php-extensions-finder check [--composer COMPOSER] [--] ...
```

or

```
php-extensions-finder check [--composer COMPOSER] [--] ...
```

if it is installed globally

For more information, run with option `--help`

The result looks like:

```
Please, add these lines to your composer.json:
==============================================

{
    "require": {
        "ext-json": "*"
    }
}

```

With option `-vvv` output will be extended with missing extensions usage:

```
Missing extensions usage:
=========================

ext-json
--------
src/Command/MyCommand.php:35 json_decode
src/Command/MyCommand.php:70 json_encode
src/Command/MyCommand.php:70 JSON_PRETTY_PRINT

Please, add these lines to your composer.json:
==============================================

{
    "require": {
        "ext-json": "*"
    }
}

```

Return code is count of missing extensions, so you can use it in CI tools.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance66

Regular maintenance activity

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~256 days

Recently: every ~35 days

Total

11

Last Release

205d ago

PHP version history (2 changes)0.1.0PHP &gt;= 7.1.0

0.9.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/25289c62a88df1c404543693ba52e44748dbce486bcfab91fc8c5931a6bb38e1?d=identicon)[dev-efabrica](/maintainers/dev-efabrica)

---

Top Contributors

[![lulco](https://avatars.githubusercontent.com/u/9377319?v=4)](https://github.com/lulco "lulco (12 commits)")[![MartinMystikJonas](https://avatars.githubusercontent.com/u/2094752?v=4)](https://github.com/MartinMystikJonas "MartinMystikJonas (1 commits)")

---

Tags

phptestciextensions finder

### Embed Badge

![Health badge](/badges/efabrica-php-extensions-finder/health.svg)

```
[![Health](https://phpackages.com/badges/efabrica-php-extensions-finder/health.svg)](https://phpackages.com/packages/efabrica-php-extensions-finder)
```

###  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.4k](/packages/infection-infection)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9224.3M28](/packages/phparkitect-phparkitect)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[testo/testo

A lightweight PHP testing framework.

1959.3k55](/packages/testo-testo)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)

PHPackages © 2026

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