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

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

waryway/php-traits-library
==========================

General use traits

1.0.4(8y ago)0464.7k↑65%2MITPHP

Since Oct 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Waryway/PhpTraitsLibrary)[ Packagist](https://packagist.org/packages/waryway/php-traits-library)[ RSS](/packages/waryway-php-traits-library/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (2)

php-traits-library
==================

[](#php-traits-library)

General PHP traits for ease of development

Status
------

[](#status)

[![Build Status](https://camo.githubusercontent.com/161b98ce5ecb48ebe3bcc47ff8ec11fda389ad06daee1ba817402a320300af8c/68747470733a2f2f7472617669732d63692e6f72672f576172797761792f5068705472616974734c6962726172792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Waryway/PhpTraitsLibrary)

Usage
-----

[](#usage)

1. Include this package through composer.
2. Use the composer autoloader
3. Reference through through psr-4 namespaces

Singleton
---------

[](#singleton)

Prevent instantiation of 'single instance' object. The standard php singleton trait.

Hydrator
--------

[](#hydrator)

Rest likes standard class objects. Hydrating php object can be easy. Follow the hydrator pattern.

Generator
---------

[](#generator)

The generator trait currently supports reading from a file with an optional line parser

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3069d ago

### Community

Maintainers

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

---

Top Contributors

[![KyleWiering](https://avatars.githubusercontent.com/u/2728319?v=4)](https://github.com/KyleWiering "KyleWiering (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cmgmyr/phploc

A tool for quickly measuring the size of a PHP project.

266.6M3](/packages/cmgmyr-phploc)[marionnewlevant/snitch

Report when two people might be editing the same element (eg entry, category, or global) or field

3585.1k2](/packages/marionnewlevant-snitch)

PHPackages © 2026

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