PHPackages                             dstuecken/php7ify - 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. dstuecken/php7ify

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

dstuecken/php7ify
=================

php7ify is a project that brings new php7 classes and exceptions to php 5.x.

1.1.1(6y ago)11157.7k↓42.9%11MITPHPPHP &gt;=5.3.0CI failing

Since Dec 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dstuecken/php7ify)[ Packagist](https://packagist.org/packages/dstuecken/php7ify)[ RSS](/packages/dstuecken-php7ify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

php7ify
=======

[](#php7ify)

php7ify is a project that brings new php7 classes, functions and exceptions to php 5.x

[![Build Status](https://camo.githubusercontent.com/d487964d843e79b09d007a01be1991900369c7688c0d250727fefe95ded8bbad/68747470733a2f2f7472617669732d63692e6f72672f6473747565636b656e2f706870376966792e737667)](https://travis-ci.org/dstuecken/php7ify)[![License](https://camo.githubusercontent.com/a3747b78e46923c6c3353aad30964a8ce4d848af480124d11004be9e3296bac2/68747470733a2f2f706f7365722e707567782e6f72672f6473747565636b656e2f706870376966792f6c6963656e7365)](https://packagist.org/packages/dstuecken/php7ify)[![Latest Stable Version](https://camo.githubusercontent.com/ed03576c1ffbdb4f27b9d682509e8a252ad600f7097e6d2f890e3253dd04ecf0/68747470733a2f2f706f7365722e707567782e6f72672f6473747565636b656e2f706870376966792f762f737461626c65)](https://packagist.org/packages/dstuecken/php7ify)[![Latest Unstable Version](https://camo.githubusercontent.com/78d6e25b3f1a3706d46a816fafde5cc2d6744da447927043ff2f7ecccc815c2e/68747470733a2f2f706f7365722e707567782e6f72672f6473747565636b656e2f706870376966792f762f756e737461626c65)](https://packagist.org/packages/dstuecken/php7ify)

Requirements
------------

[](#requirements)

- PHP 5.3

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

To install php7ify with composer, just add the following to your composer.json file:

```
{
    "require": {
        "dstuecken/php7ify": "1.0"
    }
}
```

or by running the following command:

```
composer require dstuecken/php7ify
```

Usage
=====

[](#usage)

Just use the new \\Throwable interface in your php 5 project, or catch an \\Error exception.

```
try
{
    mysql_query();
}
catch (Error $e)
{
    echo $e->getMessage() . "\n\n";
    echo $e->getTraceAsString();
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~774 days

Total

3

Last Release

2259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/954b10a1446b3623b01189c7e93ff3c8075222098c4a5116b4bbcb720b80cc16?d=identicon)[dstuecken](/maintainers/dstuecken)

---

Top Contributors

[![dstuecken](https://avatars.githubusercontent.com/u/493399?v=4)](https://github.com/dstuecken "dstuecken (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

composerphpphp-polyfillphp7errorthrowableexceptionsphp 7PHP7php 7.0errorexceptionphp 7 exceptions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dstuecken-php7ify/health.svg)

```
[![Health](https://phpackages.com/badges/dstuecken-php7ify/health.svg)](https://phpackages.com/packages/dstuecken-php7ify)
```

###  Alternatives

[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

344146.0k](/packages/qaribou-immutablephp)[minwork/array

Pack of advanced array functions specifically tailored for: associative (assoc) array, multidimensional array, array of objects and handling nested array elements

66256.1k5](/packages/minwork-array)[sunrise/vin

VIN decoder for PHP 7.1+ based on ISO-3779

83127.0k](/packages/sunrise-vin)[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)[phpattempt/phpattempt

Helper function to enforce error-first approach in your code

1710.4k](/packages/phpattempt-phpattempt)[phpmath/biginteger

A PHP library to work with big integers.

235.8k1](/packages/phpmath-biginteger)

PHPackages © 2026

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