PHPackages                             alexacrm/polyfill-php70 - 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. alexacrm/polyfill-php70

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

alexacrm/polyfill-php70
=======================

Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions, compatible with PHP7

v1.11.1(6y ago)0702↓100%MITPHPPHP &gt;=5.3.3

Since Nov 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AlexaCRM/polyfill-php70)[ Packagist](https://packagist.org/packages/alexacrm/polyfill-php70)[ Docs](https://symfony.com)[ RSS](/packages/alexacrm-polyfill-php70/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (17)Used By (0)

Symfony Polyfill / Php70
========================

[](#symfony-polyfill--php70)

This component provides features unavailable in releases prior to PHP 7.0:

- [`intdiv`](http://php.net/intdiv)
- [`preg_replace_callback_array`](http://php.net/preg_replace_callback_array)
- [`error_clear_last`](http://php.net/error_clear_last)
- `random_bytes` and `random_int` (from [paragonie/random\_compat](https://github.com/paragonie/random_compat))
- [`*Error` throwable classes](http://php.net/Error)
- [`PHP_INT_MIN`](http://php.net/manual/en/reserved.constants.php#constant.php-int-min)
- `SessionUpdateTimestampHandlerInterface`

More information can be found in the [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).

Compatibility notes
===================

[](#compatibility-notes)

To write portable code between PHP5 and PHP7, some care must be taken:

- `\*Error` exceptions must be caught before `\Exception`;
- after calling `error_clear_last()`, the result of `$e = error_get_last()` must be verified using `isset($e['message'][0])` instead of `null !== $e`.

License
=======

[](#license)

This library is released under the [MIT license](LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~96 days

Total

16

Last Release

2550d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76e79324c14d56ed2bb8e729129d16566551cc969b34f98bd760549ce2426292?d=identicon)[wizardist](/maintainers/wizardist)

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

---

Top Contributors

[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (19 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (5 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (2 commits)")[![wizardist](https://avatars.githubusercontent.com/u/532481?v=4)](https://github.com/wizardist "wizardist (2 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (1 commits)")[![jeroenvisser101](https://avatars.githubusercontent.com/u/1941348?v=4)](https://github.com/jeroenvisser101 "jeroenvisser101 (1 commits)")[![Oliboy50](https://avatars.githubusercontent.com/u/2571084?v=4)](https://github.com/Oliboy50 "Oliboy50 (1 commits)")[![RGustBardon](https://avatars.githubusercontent.com/u/1412877?v=4)](https://github.com/RGustBardon "RGustBardon (1 commits)")[![robfrawley](https://avatars.githubusercontent.com/u/3967713?v=4)](https://github.com/robfrawley "robfrawley (1 commits)")[![samnela](https://avatars.githubusercontent.com/u/1852108?v=4)](https://github.com/samnela "samnela (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![z38](https://avatars.githubusercontent.com/u/3948085?v=4)](https://github.com/z38 "z38 (1 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![Fleshgrinder](https://avatars.githubusercontent.com/u/1059453?v=4)](https://github.com/Fleshgrinder "Fleshgrinder (1 commits)")[![gharlan](https://avatars.githubusercontent.com/u/330436?v=4)](https://github.com/gharlan "gharlan (1 commits)")

---

Tags

compatibilityportablepolyfillshim

### Embed Badge

![Health badge](/badges/alexacrm-polyfill-php70/health.svg)

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

###  Alternatives

[symfony/polyfill-mbstring

Symfony polyfill for the Mbstring extension

7.8k1.2B515](/packages/symfony-polyfill-mbstring)[symfony/polyfill-php72

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions

4.8k674.7M31](/packages/symfony-polyfill-php72)[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k774.6M90](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)[symfony/polyfill-php73

Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions

2.4k581.8M67](/packages/symfony-polyfill-php73)[symfony/polyfill-php80

Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions

1.7k815.2M455](/packages/symfony-polyfill-php80)

PHPackages © 2026

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