PHPackages                             dzhuravel/php7x - 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. dzhuravel/php7x

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

dzhuravel/php7x
===============

With using the PHP library, we are checking the new feature of 7.x features in index.php file.

03PHP

Since Jun 29Pushed 6y agoCompare

[ Source](https://github.com/d3li0n/php7x)[ Packagist](https://packagist.org/packages/dzhuravel/php7x)[ RSS](/packages/dzhuravel-php7x/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Description
-----------

[](#description)

This project shows the example of different versions of PHP updates from 7.0 to 7.3.

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

[](#installation)

The preferred way to install this extension is through **composer**. Check the **composer.json** for this extension's requirements and dependencies. Read this **composer.json** for source library requirements.

To install or either to run:

> php composer.phar require "dzhuravel/php7x @dev"

Basic Usage
-----------

[](#basic-usage)

Look at the index.php and in the end of the there are functions that use the functionally of the different PHP versions

### ternarOperator()

[](#ternaroperator)

> echo $test1-&gt;ternarOperator();

- If the variable $firstVar is defined, function returns it, otherwise returns a constant 3

### getKey()

[](#getkey)

> echo $test1-&gt;getKey(int $key);

- We are able to find the first key array\_key\_first() in the array. If $key is not entered, function will return last key of array with using array\_key\_last().

### countVar()

[](#countvar)

> echo $test1-&gt;countVar();

- Using the PHP 7.3 is\_countable() function, we can determine if it is possible to count the array. The example provided did not include the array as input.

### setPower()

[](#setpower)

> echo $test2-&gt;setPower();

- Function connected to the strict types property. Result will be provided if the numbers inputted as integers.

### textEntered()

[](#textentered)

> echo $test2-&gt;textEntered();

- Example of using void. The function in this case shall not return the value. Using the PHP 7.1 feature.

### Class Constants

[](#class-constants)

- Example of using PHP 7.1, which enabled feature of using visibility of constants.

### Ability of using null as parameter in the function

[](#ability-of-using-null-as-parameter-in-the-function)

- In PHP 7.1 we are allowed to return the null value, if the function parameter allows the null of one of the parameters. Example is included in most of the functions.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b5922a3ad0a69f5bbc4be5643bbe3bfee0eabd4afe49ef680d8efc8b0536cc?d=identicon)[d3li0n](/maintainers/d3li0n)

---

Top Contributors

[![d3li0n](https://avatars.githubusercontent.com/u/29903768?v=4)](https://github.com/d3li0n "d3li0n (16 commits)")

### Embed Badge

![Health badge](/badges/dzhuravel-php7x/health.svg)

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

###  Alternatives

[dg/composer-frontline

Composer Frontline: updates all the version constraints in the composer.json file to latest version

288.4k1](/packages/dg-composer-frontline)

PHPackages © 2026

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