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(5mo ago)57.6k21PHPPHP ^8.4

Since Dec 3Pushed 5mo 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 1mo ago

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

51

—

FairBetter than 96% of packages

Maintenance72

Regular maintenance activity

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity75

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

159d 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

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[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)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[moodlehq/moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.

612.6M](/packages/moodlehq-moodle-plugin-ci)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)

PHPackages © 2026

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