{"id":16225759,"url":"https://github.com/macfja/polyfill-registry","last_synced_at":"2026-01-30T23:41:50.062Z","repository":{"id":62521313,"uuid":"131452388","full_name":"MacFJA/polyfill-registry","owner":"MacFJA","description":"List of all (most of) polyfills for PHP","archived":false,"fork":false,"pushed_at":"2020-02-22T18:56:13.000Z","size":228,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T21:36:11.531Z","etag":null,"topics":["polyfill","polyfills","registry","shim"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MacFJA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-28T23:50:32.000Z","updated_at":"2020-02-22T18:56:16.000Z","dependencies_parsed_at":"2022-11-02T15:31:50.624Z","dependency_job_id":null,"html_url":"https://github.com/MacFJA/polyfill-registry","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacFJA%2Fpolyfill-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacFJA%2Fpolyfill-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacFJA%2Fpolyfill-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacFJA%2Fpolyfill-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MacFJA","download_url":"https://codeload.github.com/MacFJA/polyfill-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721928,"owners_count":20985083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["polyfill","polyfills","registry","shim"],"created_at":"2024-10-10T12:46:13.886Z","updated_at":"2026-01-30T23:41:50.003Z","avatar_url":"https://github.com/MacFJA.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polyfill Registry\n\nThe 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.\n\n\n## Different type of Polyfill\n\nThere 3 types of polyfill:\n\n - **`polyfill`**, the true polyfill: You add the dependency and it work out of the box\n - **`stub`**, the faker: Provide empty implementation (ex: xdebug, NewRelic, etc.)\n - **`alternative`**, it's your choice: You have to manually activate the code\n\n## All polyfills\n\nThe list of all referenced polyfills are available as:\n - [A JSON file](resources/registry.json)\n - [A Markdown file](LIST.md)\n\n## Tools\n\nYou can navigate throught the registry with PHP object\n\n### Search for a polyfill\n\nYou can search for polyfills that can replace a function, a class, an extension, a constant, a version of PHP.\n\nSee [ReaderInterface](lib/ReaderInterface.php) for more details.\n\nHere an example for a function:\n```php\n$registry = new \\MacFJA\\PolyFillRegistry\\PolyfillRegistry();\n$polyfills = $registry-\u003egetPolyfillForFunction('array_column');\n```\n\n### Get information about a polyfill\n\nYou can get the lists of functions, of classes, of constants implemented by a polyfill from its name.\n\nSee [ReverseSearchInterface](lib/ReverseSearchInterface.php) for more details.\n\nHere an example to getting all functions of a polyfill:\n```php\n$registry = new \\MacFJA\\PolyFillRegistry\\PolyfillRegistry();\n$functions = $registry-\u003egetPolyfillFunctions('paragonie/sodium_compat');\n// `$functions` contains the list of all functions name implemented by the polyfill 'paragonie/sodium_compat'\n```\n\n## Contribution\n\nKeeping track of all polyfill is a really huge task and the possibility to miss a polyfill is as great as the size of internet.\n\nTo provide the most complete registry, any contribution is welcome.\n - 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.\n - 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.\n - If you have any question, you can [open a issue on GitHub](https://github.com/MacFJA/polyfill-registry/issues/new).\n\nIf you change the file `resources/registry.json`, please run `make generate_all` to sort the registry and update the [Markdown list](LIST.md)\n\n## Compatibility/Component\n\n- The library is compatible with PHP 5.3+\n- The library use Makefile to reduce human error on generating some file\n- The library use Docker to remove system dependencies on file generation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacfja%2Fpolyfill-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacfja%2Fpolyfill-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacfja%2Fpolyfill-registry/lists"}