Libraries tagged by immutability
matthiasnoback/convenient-immutability
65061 Downloads
Make objects initially inconsistent, yet eventually immutable
bonami/collections
164593 Downloads
Collections library with focus on immutability and functional approach
haspadar/phpstan-rules
20783 Downloads
PHPStan design rules for immutability and structure
chemem/bingo-functional
7038 Downloads
A simple functional programming library.
tiny-blocks/immutable-object
14594 Downloads
Provides immutable behavior for objects.
php-slang/php-slang
27240 Downloads
PHPSlang is a library that allow you to write a purely functional code in PHP
maplephp/dto
585 Downloads
DTO library in PHP provides benefits such as encapsulating data, enforcing immutability and facilitating data transformation.
eboreum/collections
7169 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.
margusk/accessors
224 Downloads
Provides automatic property accessors (setters/getters) with immutability support
grisaia/time
4817 Downloads
PHP built-in DateTime classes alternative. Strict types, immutability, no exceptions and latest PHP features.
davidmpeace/immutability
20474 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
17 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.
walnut/lang
59 Downloads
Walnut is a modern functional programming language that combines powerful type system features with practical programming constructs. Designed for building robust applications, Walnut emphasizes type safety, immutability, and clear error handling while maintaining excellent developer ergonomics.