PHPackages                             mirko-pagliai/php-tools - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. mirko-pagliai/php-tools

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

mirko-pagliai/php-tools
=======================

Some essential tools for PHP

1.10.1(2y ago)1155.9k↓70.7%26MITPHPPHP &gt;=8.1

Since Apr 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mirko-pagliai/php-tools)[ Packagist](https://packagist.org/packages/mirko-pagliai/php-tools)[ Docs](https://github.com/mirko-pagliai/php-tools)[ RSS](/packages/mirko-pagliai-php-tools/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (11)Versions (105)Used By (6)

php-tools
=========

[](#php-tools)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![CI](https://github.com/mirko-pagliai/php-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/mirko-pagliai/php-tools/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/fcbab2705ae3beec4dbd7a34553f16d03618d70e466d09229153728baf09b592/68747470733a2f2f636f6465636f762e696f2f67682f6d69726b6f2d7061676c6961692f7068702d746f6f6c732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mirko-pagliai/php-tools)[![Codacy Badge](https://camo.githubusercontent.com/9eb355d19e4a4346c499dae9516ffdd248e2a6e4add6216dbecba7015ae86c38/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6433396361356633613331633466363139616664386566616261646466326332)](https://www.codacy.com/manual/mirko.pagliai/php-tools?utm_source=github.com&utm_medium=referral&utm_content=mirko-pagliai/php-tools&utm_campaign=Badge_Grade)[![CodeFactor](https://camo.githubusercontent.com/067ff4a9342d6e8a17bcbc8feb62db0ef217a83ab0a17998928731ad8a764c65/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6d69726b6f2d7061676c6961692f7068702d746f6f6c732f6261646765)](https://www.codefactor.io/repository/github/mirko-pagliai/php-tools)

*php-tools* adds some useful global functions, classes and methods, trait and exceptions. Refer to our [API](https://mirko-pagliai.github.io/php-tools) to discover them all.

Did you like this plugin? Its development requires a lot of time for me. Please consider the possibility of making [a donation](https://paypal.me/mirkopagliai): even a coffee is enough! Thank you.

[![Make a donation](https://camo.githubusercontent.com/d9f2015fc776952b7d14005e3f0e18099924deeb096bffd93869762ebecde952/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f7765627374617469632f6d6b74672f6c6f676f2d63656e7465722f6c6f676f5f70617970616c5f63617274652e6a7067)](https://paypal.me/mirkopagliai)

---

- [Installation](#installation)
    - [Installation on older PHP versions](#installation-on-older-php-versions)
        - [For PHP 7.4 or later](#for-php-74-or-later)
        - [For PHP 7.2 or later](#for-php-72-or-later)
        - [For PHP 5.6 or later](#for-php-56-or-later)
- [Versioning](#versioning)

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

[](#installation)

You can install the package via composer:

```
$ composer require --prefer-dist mirko-pagliai/php-tools

```

### Installation on older PHP versions

[](#installation-on-older-php-versions)

Recent packages and the master branch require at least PHP 8.1 and the current development of the code is based on these and later versions of PHP. However, there are still some branches compatible with previous versions of PHP.

#### For PHP 7.4 or later

[](#for-php-74-or-later)

The [php7.4](https://github.com/mirko-pagliai/php-tools/tree/php7.4) branch requires at least PHP 7.4.

In this case, you can install the package as well:

```
$ composer require --prefer-dist mirko-pagliai/php-tools:dev-php7.4
```

Note that the `php8.0` branch will no longer be updated as of January 04, 2024, except for security patches, and it matches the [1.8.3](https://github.com/mirko-pagliai/php-tools/releases/tag/1.8.3) version.

#### For PHP 7.2 or later

[](#for-php-72-or-later)

The [php7.2](https://github.com/mirko-pagliai/php-tools/tree/php7.2) branch requires at least PHP 7.2.

In this case, you can install the package as well:

```
$ composer require --prefer-dist mirko-pagliai/php-tools:dev-php7.2
```

Note that the `php7.2` branch will no longer be updated as of April 28, 2022, except for security patches, and it matches the [1.5.14](https://github.com/mirko-pagliai/php-tools/releases/tag/1.5.14) version.

#### For PHP 5.6 or later

[](#for-php-56-or-later)

The [php5.6](https://github.com/mirko-pagliai/php-tools/tree/php5.6) branch requires at least PHP 5.6.

In this case, you can install the package as well:

```
$ composer require --prefer-dist mirko-pagliai/php-tools:dev-php5.6
```

Note that the `php5.6` branch will no longer be updated as of April 22, 2021, except for security patches, and it matches the [1.4.8](https://github.com/mirko-pagliai/php-tools/releases/tag/1.4.8) version.

Versioning
----------

[](#versioning)

For transparency and insight into our release cycle and to maintain backward compatibility, *php-tools* will be maintained under the [Semantic Versioning guidelines](http://semver.org).

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

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

Recently: every ~32 days

Total

99

Last Release

781d ago

PHP version history (6 changes)1.0.0PHP &gt;=5.4

1.2.5PHP &gt;=5.6

1.3.0PHP &gt;=7.1

1.4.0PHP &gt;=7.2.5

1.6.0PHP &gt;=7.4

1.9.0-RC1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/56d4c91c4d1ce5952a13c723d4fd340f8a1220ba1ef0212bbdb9a6334c98b3b9?d=identicon)[mirko-pagliai](/maintainers/mirko-pagliai)

---

Top Contributors

[![mirko-pagliai](https://avatars.githubusercontent.com/u/293199?v=4)](https://github.com/mirko-pagliai "mirko-pagliai (1219 commits)")

---

Tags

phpphp-libphp-libraryphpunit

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mirko-pagliai-php-tools/health.svg)

```
[![Health](https://phpackages.com/badges/mirko-pagliai-php-tools/health.svg)](https://phpackages.com/packages/mirko-pagliai-php-tools)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k60.6M803](/packages/drush-drush)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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