PHPackages                             alecrabbit/php-traits - 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. alecrabbit/php-traits

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

alecrabbit/php-traits
=====================

PHP traits to use in every project :)

0.3.4(6y ago)15.5k4MITPHPPHP ^7.2CI passing

Since Jan 8Pushed 5y ago2 watchersCompare

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

READMEChangelogDependencies (4)Versions (16)Used By (4)

PHP useful traits
=================

[](#php-useful-traits)

[![PHP Version](https://camo.githubusercontent.com/66316d0edb871aea2f29d4ae39171d718c00aa1f8edf78e35af708bb41e9bde8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c65637261626269742f7068702d7472616974732e737667)](https://php.net)[![Build Status](https://camo.githubusercontent.com/a8f445a183419fcb17446754d1b8875a6b9e5ba72723f11fae722b25f895c455/68747470733a2f2f7472617669732d63692e6f72672f616c65637261626269742f7068702d7472616974732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alecrabbit/php-traits)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/26ee72837db02cdf985a5f333937ccb6d355f7876697e3dc38d5fcd310c458de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65637261626269742f7068702d7472616974732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alecrabbit/php-traits/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/21e5e56c96dfc1c67c1fc195eb5a8840843ffda513c40967d9c0df87eb7747bc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65637261626269742f7068702d7472616974732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alecrabbit/php-traits/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/e6c9c84f84e5594ebccdf87be4694e23e13cbd0e39bca9930ff85b172b5253cd/68747470733a2f2f706f7365722e707567782e6f72672f616c65637261626269742f7068702d7472616974732f646f776e6c6f616473)](https://packagist.org/packages/alecrabbit/php-traits)

[![Latest Stable Version](https://camo.githubusercontent.com/5d816195e2b959765342c0249a737de5be96922b04c63d746bf48b4a873aa6d5/68747470733a2f2f706f7365722e707567782e6f72672f616c65637261626269742f7068702d7472616974732f762f737461626c65)](https://packagist.org/packages/alecrabbit/php-traits)[![Latest Stable Version](https://camo.githubusercontent.com/f4a435e968e7e8e5c6eb41b11bbc0740aa2be440f4cf61d77cdec3f9fe1cf0bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c65637261626269742f7068702d7472616974732e737667)](https://packagist.org/packages/alecrabbit/php-traits)[![Latest Unstable Version](https://camo.githubusercontent.com/3564964d69027f2a8e4984d9b4a6e7c47cdba276468a303a8929e042bfa65574/68747470733a2f2f706f7365722e707567782e6f72672f616c65637261626269742f7068702d7472616974732f762f756e737461626c65)](https://packagist.org/packages/alecrabbit/php-traits)

[![License](https://camo.githubusercontent.com/1dac8126c5c9551bb1f7d95cc62698b9fd0ed954b47d84f89b1ac98307ccbe3c/68747470733a2f2f706f7365722e707567782e6f72672f616c65637261626269742f7068702d7472616974732f6c6963656e7365)](https://packagist.org/packages/alecrabbit/php-traits)

##### Name related traits

[](#name-related-traits)

[Nameable](docs/Nameable.md)

##### DoesProcessException

[](#doesprocessexception)

[DoesProcessException](docs/DoesProcessException.md)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.4% 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 ~13 days

Total

13

Last Release

2524d ago

PHP version history (2 changes)0.0.2-BETAPHP &gt;=7.2

0.1.1PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![alecrabbit](https://avatars.githubusercontent.com/u/11045453?v=4)](https://github.com/alecrabbit "alecrabbit (104 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")

---

Tags

phptraitnameprivatetraitsstartstop

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alecrabbit-php-traits/health.svg)

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

###  Alternatives

[kkszymanowski/traitor

Add a trait use statement to existing PHP class

1305.2M16](/packages/kkszymanowski-traitor)[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.

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

PHPackages © 2026

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