PHPackages                             gianarb/angry - 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. gianarb/angry

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

gianarb/angry
=============

A collection of traits to defend classes from mis-use.

1.0.0(5y ago)575.0k↓33.3%26MITPHPPHP ^7.3 || ~8.0

Since Oct 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/gianarb/angry)[ Packagist](https://packagist.org/packages/gianarb/angry)[ GitHub Sponsors](https://github.com/gianarb)[ RSS](/packages/gianarb-angry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (6)

Angry
=====

[](#angry)

[![Build Status](https://camo.githubusercontent.com/81704b346b0a917d9cc4d926a543a63de23a86ce30fc24ebd0f049448a3dc0b0/68747470733a2f2f7472617669732d63692e636f6d2f6769616e6172622f616e6772792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/gianarb/angry)

This library is a collection of traits to stop mis-use of your classes. Based on @ocramius talk "Defensive Programming".

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

[](#installation)

```
composer install gianarb/angry "^1.0"
```

Getting Started
---------------

[](#getting-started)

- Block `clone` of a class use `GianArb\Angry\Unclonable` trait.
- Block invoking of a class e.g. `$className();` use `GianArb\Angry\Uninvokable` trait.
- Block serialization of a class use `GianArb\Angry\Unserializable` trait.
- Block all of the above use `GianArb\Angry\ClassDefence` trait.

Remember: the best way to write code is be lazy! .

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~769 days

Total

3

Last Release

1938d ago

Major Versions

0.1.1 → 1.0.02021-01-25

PHP version history (2 changes)0.1.0PHP ^5.4 || ^7.0

1.0.0PHP ^7.3 || ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d34f29506d934b7fd2a8ef8c16781337862657ff129d61c5c610482fff336a5?d=identicon)[GianArb](/maintainers/GianArb)

---

Top Contributors

[![gianarb](https://avatars.githubusercontent.com/u/1630267?v=4)](https://github.com/gianarb "gianarb (10 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (7 commits)")[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gianarb-angry/health.svg)

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

PHPackages © 2026

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