PHPackages                             guillegf/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. guillegf/php-tools

Abandoned → [atrapalo/php-tools](/?search=atrapalo%2Fphp-tools)Library[Utility &amp; Helpers](/categories/utility)

guillegf/php-tools
==================

Several PHP 7 tools to make life a little easier

1.1.0(9y ago)028MITPHPPHP ^7.0

Since Mar 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/GuilleGF/PHP-Tools)[ Packagist](https://packagist.org/packages/guillegf/php-tools)[ Docs](https://github.com/GuilleGF/PHP-Tools)[ RSS](/packages/guillegf-php-tools/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PHP-Tools
=========

[](#php-tools)

[![Build Status](https://camo.githubusercontent.com/c8f3f9ff18ec2c272ea24e9efb597b68ccf64da665bdddcc292f5ec4c0e8d1d2/68747470733a2f2f7472617669732d63692e6f72672f4775696c6c6547462f5048502d546f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/GuilleGF/PHP-Tools)[![Code Coverage](https://camo.githubusercontent.com/e33af7d665e2772786c206a6e6f815a363542db623039e22574184903fba1122/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6c6547462f5048502d546f6f6c732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilleGF/PHP-Tools/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1ee8d9a116c4e8d3f162f8d03339602af65c6a4b9751c838daa7e1ab6b72f8e0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6c6547462f5048502d546f6f6c732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilleGF/PHP-Tools/?branch=master)

Several PHP 7 tools to make life a little easier

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

[](#installation)

```
composer require guillegf/php-tools

```

Enum
----

[](#enum)

PHP Enum implementation inspired from [`SplEnum`](http://php.net/manual/es/class.splenum.php) and based on project [`myclabs/php-enum`](https://github.com/myclabs/php-enum) because it is not integrated to PHP, you have to install it separately.

Using an enum instead of class constants provides the following advantages:

- You can type-hint: `function setAction(Action $action) {`
- You can enrich the enum with methods (e.g. `format`, `parse`, …)
- You can extend the enum to add new values (make your enum `final` to prevent it)
- You can get a list of all the possible values (see below)

This Enum class is not intended to replace class constants, but only to be used when it makes sense.

[See documentation](doc/ENUM.md)

Collection
----------

[](#collection)

PHP EntityCollection implementation inspired on [`ArrayCollection`](https://github.com/doctrine/collections/blob/master/lib/Doctrine/Common/Collections/ArrayCollection.php) from project [`doctrine/collections`](https://github.com/doctrine/collections).

[See documentation](doc/COLLECTION.md)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3382d ago

### Community

Maintainers

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

---

Top Contributors

[![GuilleGF](https://avatars.githubusercontent.com/u/5171960?v=4)](https://github.com/GuilleGF "GuilleGF (22 commits)")

---

Tags

collectionenumphp7phpenumcollectiontoolscamelcase

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lazerg/laravel-enum-pro

A powerful PHP enum extension with collection support, random selection, and magic static calls

4319.5k](/packages/lazerg-laravel-enum-pro)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2518.6k](/packages/iteks-laravel-enum)

PHPackages © 2026

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