PHPackages                             josephnc/phpfuncs - 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. josephnc/phpfuncs

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

josephnc/phpfuncs
=================

PHP user defined functions for quick use.

v1.0.3(6y ago)240MITPHPPHP &gt;=5.6.0

Since Apr 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/JosephNC/phpfuncs)[ Packagist](https://packagist.org/packages/josephnc/phpfuncs)[ RSS](/packages/josephnc-phpfuncs/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

PHPFuncs
========

[](#phpfuncs)

PHP user defined functions for quick use on your projects.

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

[](#installation)

PHP 5.6+ is required.

```
composer require josephnc/phpfuncs

```

Usage
-----

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';

#use function JosephNC\PHPFuncs\;

use function JosephNC\PHPFuncs\real_ip;
use function JosephNC\PHPFuncs\is_array_equal;

$array1 = [
    'foo' => 'bar',
    'bar' => 'foo',
];

$array2 = [
    'bar' => 'foo',
    'foo' => 'bar',
];

$ip_address = real_ip();
$equal      = is_array_equal($array1, $array2);

echo 'Here is your IP Address: ' . $ip_address . '';

if ($equal) {
    echo 'Your arrays are equal!';
} else {
    echo 'Your arrays are not equal.';
}
```

Output:

```
Here is your IP Address: 127.0.0.1
Your arrays are equal!

```

New Functions
-------------

[](#new-functions)

If you will like your custom functions to be added to this repository, please contact me. Thanks.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2386d ago

### Community

Maintainers

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

---

Top Contributors

[![JosephNC](https://avatars.githubusercontent.com/u/28754106?v=4)](https://github.com/JosephNC "JosephNC (6 commits)")

---

Tags

phpphp-functions

### Embed Badge

![Health badge](/badges/josephnc-phpfuncs/health.svg)

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

###  Alternatives

[workerman/gateway-worker-for-win

1711.1k2](/packages/workerman-gateway-worker-for-win)

PHPackages © 2026

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