PHPackages                             deviscoding/php-polyfill - 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. deviscoding/php-polyfill

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

deviscoding/php-polyfill
========================

PHP Polyfill functions, interfaces, and classes in a PHP 7.0 friendly library for legacy applications.

1.85.2(5mo ago)0151MITPHPPHP &gt;=7.0

Since Jan 20Pushed 5mo agoCompare

[ Source](https://github.com/jonesiscoding/php-polyfill)[ Packagist](https://packagist.org/packages/deviscoding/php-polyfill)[ RSS](/packages/deviscoding-php-polyfill/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (1)

PHP Polyfill
============

[](#php-polyfill)

Polyfill code for commonly used PHP functions not present in older versions, in a library that is PHP 7.0 friendly for legacy applications.

Many polyfill functions are from [symfony/polyfills](https://github.com/symfony/polyfill) and are attributed in the PHPdoc to their contributors.

Polyfills Included
------------------

[](#polyfills-included)

NameTypePHP Version`array_key_first`Function[7.3](https://php.net/array_key_first)`array_key_last`Function[7.3](https://php.net/array_key_last)`is_countable`Function[7.3](https://php.net/is_countable)`get_debug_type`Function[8.0](https://php.net/get_debug_type)`str_contains`Function[8.0](https://php.net/str_contains)`str_starts_with`Function[8.0](https://php.net/str_starts_with)`str_ends_with`Function[8.0](https://php.net/str_ends_with)`Stringable`Interface[8.0](https://php.net/stringable)`ValueErrror`Class[8.0](https://php.net/valueerror)`array_is_list`Function[8.1](https://php.net/array_is_list)`json_validate`Function[8.3](https://www.php.net/manual/en/function.json-validate.php)`array_first`Function[8.5](https://www.php.net/manual/en/function.array-first.php)`array_last`Function[8.5](https://www.php.net/manual/en/function.array-last.php)Versioning
----------

[](#versioning)

The minor version indicates the latest PHP version *from* which some functionality is included.

The major version can be used to match compatibility *with* a specific PHP version:

- All 1.x releases will maintain compatibility with PHP 7.0

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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 ~13 days

Total

2

Last Release

151d ago

### Community

Maintainers

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

---

Top Contributors

[![jonesiscoding](https://avatars.githubusercontent.com/u/5215554?v=4)](https://github.com/jonesiscoding "jonesiscoding (5 commits)")

### Embed Badge

![Health badge](/badges/deviscoding-php-polyfill/health.svg)

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

###  Alternatives

[clickstorm/go-maps-ext

Google Maps Extension. Simply insert a google map Version 3 without jQuery, calculate a route, images for markers, style maps, KML, categories, responsive and many more.

24170.5k3](/packages/clickstorm-go-maps-ext)[thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

2311.6k](/packages/thisisbd-silverstripe-maintenance-mode)

PHPackages © 2026

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