Libraries tagged by immutability
matthiasnoback/convenient-immutability
65395 Downloads
Make objects initially inconsistent, yet eventually immutable
bonami/collections
165291 Downloads
Collections library with focus on immutability and functional approach
chemem/bingo-functional
7038 Downloads
A simple functional programming library.
haspadar/phpstan-rules
21638 Downloads
PHPStan design rules for immutability and structure
php-slang/php-slang
27241 Downloads
PHPSlang is a library that allow you to write a purely functional code in PHP
maplephp/dto
607 Downloads
DTO library in PHP provides benefits such as encapsulating data, enforcing immutability and facilitating data transformation.
eboreum/collections
7291 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.
grisaia/time
4935 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.
tiny-blocks/immutable-object
14594 Downloads
Provides immutable behavior for objects.
phpcommon/valueobject
29 Downloads
PHP Value Object Library.
m1guelpf/eloquent-immutable
2 Downloads
Enforce table immutability using Laravel Eloquent
eboreum/immutable-interface
18 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.
taujor/cally
1 Downloads
Cally is a lightweight, immutable registry for storing and retrieving data or services in PHP. It provides a simple yet powerful way to manage configurations, dependencies, or any key-value pairs with support for immutability and PSR-11 compliance. Cally is ideal for any project where a full-fledged dependency injection container is unnecessary.