PHPackages                             pabloolvcastro/php-immutable - 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. pabloolvcastro/php-immutable

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

pabloolvcastro/php-immutable
============================

PHP Immutable object library

v0.0.4(4y ago)231[1 issues](https://github.com/pabloolvcastro/php-immutable/issues)MITPHPPHP &gt;=7.3

Since Jun 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pabloolvcastro/php-immutable)[ Packagist](https://packagist.org/packages/pabloolvcastro/php-immutable)[ RSS](/packages/pabloolvcastro-php-immutable/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

ARCHIVED
========

[](#archived)

[Please check Read-only classes on PHP 8.2](https://www.php.net/releases/8.2/en.php#readonly_classes)

php-immutable
-------------

[](#php-immutable)

[![Packagist Version](https://camo.githubusercontent.com/35ea1755da4f54ba5a39e6c399943acbb9e9adb5b7f88f9f1d089e83e1349ff3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)](https://camo.githubusercontent.com/35ea1755da4f54ba5a39e6c399943acbb9e9adb5b7f88f9f1d089e83e1349ff3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)[![GitHub release (latest by date)](https://camo.githubusercontent.com/1e24e2945761929c52441527aa34dc6efb424bc7c3a8bf5844a3dd36c8ff9cf6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)](https://camo.githubusercontent.com/1e24e2945761929c52441527aa34dc6efb424bc7c3a8bf5844a3dd36c8ff9cf6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)[![Packagist License](https://camo.githubusercontent.com/918b0671f0ea6bdbddfde45fdebd5daf192b55d2987752c9557c68af72876f5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)](https://github.com/pabloolvcastro/php-immutable/blob/main/LICENSE)[![CI/CD](https://github.com/pabloolvcastro/php-immutable/actions/workflows/ci_cd.yml/badge.svg)](https://github.com/pabloolvcastro/php-immutable/actions/workflows/ci_cd.yml)

PHP library for immutable objects.

### Contributing

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

### License

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

### Respect (F)

[](#respect-f)

Special thanks to [@xinhus](https://github.com/xinhus) who provided the initial idea and the base code.

### Contributors

[](#contributors)

[![GitHub Contributors Image](https://camo.githubusercontent.com/6e529828a9f6b1acb597bb1178182fa4f4fe6cc4936502811f138051e4ba0f4b/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d7061626c6f6f6c7663617374726f2f7068702d696d6d757461626c65)](https://github.com/pabloolvcastro/php-immutable/graphs/contributors)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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 ~4 days

Total

4

Last Release

1777d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6740209?v=4)[Pablo de Oliveira Castro](/maintainers/pabloolvcastro)[@pabloolvcastro](https://github.com/pabloolvcastro)

---

Top Contributors

[![pabloolvcastro](https://avatars.githubusercontent.com/u/6740209?v=4)](https://github.com/pabloolvcastro "pabloolvcastro (4 commits)")[![xinhus](https://avatars.githubusercontent.com/u/1175744?v=4)](https://github.com/xinhus "xinhus (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pabloolvcastro-php-immutable/health.svg)

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

PHPackages © 2026

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