PHPackages                             macfja/polyfill-registry - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. macfja/polyfill-registry

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

macfja/polyfill-registry
========================

List of all (most of) polyfills for PHP

v1.0.0(7y ago)17[7 issues](https://github.com/MacFJA/polyfill-registry/issues)MITPHPPHP ^5.3CI failing

Since Oct 20Pushed 6y ago2 watchersCompare

[ Source](https://github.com/MacFJA/polyfill-registry)[ Packagist](https://packagist.org/packages/macfja/polyfill-registry)[ Docs](https://github.com/MacFJA/polyfill-registry)[ RSS](/packages/macfja-polyfill-registry/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (0)

Polyfill Registry
=================

[](#polyfill-registry)

The purpose of this project is to centralize all (most of) libraries/components that can provide a set of functionality normally provided by a PHP extension of PHP version.

Different type of Polyfill
--------------------------

[](#different-type-of-polyfill)

There 3 types of polyfill:

- **`polyfill`**, the true polyfill: You add the dependency and it work out of the box
- **`stub`**, the faker: Provide empty implementation (ex: xdebug, NewRelic, etc.)
- **`alternative`**, it's your choice: You have to manually activate the code

All polyfills
-------------

[](#all-polyfills)

The list of all referenced polyfills are available as:

- [A JSON file](resources/registry.json)
- [A Markdown file](LIST.md)

Tools
-----

[](#tools)

You can navigate throught the registry with PHP object

### Search for a polyfill

[](#search-for-a-polyfill)

You can search for polyfills that can replace a function, a class, an extension, a constant, a version of PHP.

See [ReaderInterface](lib/ReaderInterface.php) for more details.

Here an example for a function:

```
$registry = new \MacFJA\PolyFillRegistry\PolyfillRegistry();
$polyfills = $registry->getPolyfillForFunction('array_column');
```

### Get information about a polyfill

[](#get-information-about-a-polyfill)

You can get the lists of functions, of classes, of constants implemented by a polyfill from its name.

See [ReverseSearchInterface](lib/ReverseSearchInterface.php) for more details.

Here an example to getting all functions of a polyfill:

```
$registry = new \MacFJA\PolyFillRegistry\PolyfillRegistry();
$functions = $registry->getPolyfillFunctions('paragonie/sodium_compat');
// `$functions` contains the list of all functions name implemented by the polyfill 'paragonie/sodium_compat'
```

Contribution
------------

[](#contribution)

Keeping track of all polyfill is a really huge task and the possibility to miss a polyfill is as great as the size of internet.

To provide the most complete registry, any contribution is welcome.

- If you found a new polyfill, fell free to [open a issue on GitHub](https://github.com/MacFJA/polyfill-registry/issues/new?template=new-polyfill.md) or a Pull Request.
- If you found an error, fell free to [open a issue on GitHub](https://github.com/MacFJA/polyfill-registry/issues/new) or a Pull Request.
- If you have any question, you can [open a issue on GitHub](https://github.com/MacFJA/polyfill-registry/issues/new).

If you change the file `resources/registry.json`, please run `make generate_all` to sort the registry and update the [Markdown list](LIST.md)

Compatibility/Component
-----------------------

[](#compatibilitycomponent)

- The library is compatible with PHP 5.3+
- The library use Makefile to reduce human error on generating some file
- The library use Docker to remove system dependencies on file generation

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Unknown

Total

1

Last Release

2758d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e35bfbefc89c6998a77e2bf9ef3da42d80513b57cb9ae209b6c39b92a96097b3?d=identicon)[MacFJA](/maintainers/MacFJA)

---

Top Contributors

[![MacFJA](https://avatars.githubusercontent.com/u/1475671?v=4)](https://github.com/MacFJA "MacFJA (30 commits)")

---

Tags

polyfillpolyfillsregistryshimpolyfillextensionsextensionpolyfillsregistry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/macfja-polyfill-registry/health.svg)

```
[![Health](https://phpackages.com/badges/macfja-polyfill-registry/health.svg)](https://phpackages.com/packages/macfja-polyfill-registry)
```

###  Alternatives

[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)[phpxmlrpc/polyfill-xmlrpc

A pure-php reimplementation of the API exposed by the native XML-RPC extension

12369.8k2](/packages/phpxmlrpc-polyfill-xmlrpc)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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