Libraries tagged by immutability
matthiasnoback/convenient-immutability
67776 Downloads
Make objects initially inconsistent, yet eventually immutable
bonami/collections
172076 Downloads
Collections library with focus on immutability and functional approach
haspadar/phpstan-rules
24987 Downloads
PHPStan design rules for immutability and structure
php-slang/php-slang
27247 Downloads
PHPSlang is a library that allow you to write a purely functional code in PHP
chemem/bingo-functional
7302 Downloads
A simple functional programming library.
xchert/encapsulation
232 Downloads
A library for data encapsulation and collections
rasuvaeff/rector-datetime-immutable
83 Downloads
Rector rules that migrate DateTime to DateTimeImmutable and auto-fix lost mutations whose return value is ignored
maplephp/dto
728 Downloads
DTO library in PHP provides benefits such as encapsulating data, enforcing immutability and facilitating data transformation.
eboreum/collections
7958 Downloads
Wish you had generics in PHP? This library provides a sensible means of managing collections of data (i.e. arrays with restrictions), immutably, until such a time that PHP generics are bestowed upon us.
innis/coding-standards
259 Downloads
PHPStan rules that enforce the Innis coding conventions: clean-architecture layering, banned traits, interface/collection/exception placement, value-object immutability, and naming smells; plus a check that no tracked path component exceeds 95 characters.
grisaia/time
6009 Downloads
PHP built-in DateTime classes alternative. Strict types, immutability, no exceptions and latest PHP features.
davidmpeace/immutability
20475 Downloads
A simple Laravel package that allows you to enforce immutable attributes on Eloquent models.
phpcommon/valueobject
29 Downloads
PHP Value Object Library.
m1guelpf/eloquent-immutable
2 Downloads
Enforce table immutability using Laravel Eloquent
eboreum/immutable-interface
77 Downloads
Flag a class as being immutable by implementing the ImmutableInterface. An immutable object must never change its state; i.e. its class properties must remain unchanged after instantiation or cloning.