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

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

teknoo/immutable
================

Library to create PHP immutable object

3.0.22(7mo ago)4259.1k↓58.6%13BSD-3-ClausePHPPHP ^8.3

Since Feb 25Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/TeknooSoftware/immutable)[ Packagist](https://packagist.org/packages/teknoo/immutable)[ Docs](http://teknoo.software/immutable)[ GitHub Sponsors](https://github.com/sponsors/TeknooSoftware)[ Patreon](https://www.patreon.com/teknoo_software)[ RSS](/packages/teknoo-immutable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (42)Used By (13)

Teknoo Software - Immutable library
===================================

[](#teknoo-software---immutable-library)

[![Latest Stable Version](https://camo.githubusercontent.com/e3fdee15ef00fd75149d944dd98a04010675b925abebf593c757361ad70cc028/68747470733a2f2f706f7365722e707567782e6f72672f74656b6e6f6f2f696d6d757461626c652f762f737461626c65)](https://packagist.org/packages/teknoo/immutable)[![Latest Unstable Version](https://camo.githubusercontent.com/dcdde41f0f2637d1d34d00429998c3e728e1374b8029987cc170ad409f8daa35/68747470733a2f2f706f7365722e707567782e6f72672f74656b6e6f6f2f696d6d757461626c652f762f756e737461626c65)](https://packagist.org/packages/teknoo/immutable)[![Total Downloads](https://camo.githubusercontent.com/974f868941acb02b1cf3838a444d7fac660b465c8d6911b2510a8ad1e6b47f0d/68747470733a2f2f706f7365722e707567782e6f72672f74656b6e6f6f2f696d6d757461626c652f646f776e6c6f616473)](https://packagist.org/packages/teknoo/immutable)[![License](https://camo.githubusercontent.com/dc3fedf408a2821303983a883551b50aceb4154c559ee51f0fab03eeb0afc3ab/68747470733a2f2f706f7365722e707567782e6f72672f74656b6e6f6f2f696d6d757461626c652f6c6963656e7365)](https://packagist.org/packages/teknoo/immutable)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)

This library helps you to create immutable object by prohibiting \_\_set and \_\_unset calls and several call to constructor

Quick Example
-------------

[](#quick-example)

```
