PHPackages                             tleckie/value-object - 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. tleckie/value-object

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

tleckie/value-object
====================

PHP value-object. Library to implement value-object / nullable-value-object in PHP

1.0.2(5y ago)15MITPHPPHP ^8

Since May 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/teodoroleckie/value-object)[ Packagist](https://packagist.org/packages/tleckie/value-object)[ Docs](https://github.com/teodoroleckie/value-object)[ RSS](/packages/tleckie-value-object/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Library to implement value-object / nullable-value-object in PHP
================================================================

[](#library-to-implement-value-object--nullable-value-object-in-php)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/67872390b400dd8a39eba9353ff73ec7ed6fd2bfe3a1b7fc5c48b5039fc8f863/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f76616c75652d6f626a6563742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/teodoroleckie/value-object/?branch=main)[![Build Status](https://camo.githubusercontent.com/364c87c5fc2c7203d3f1e6e84132fcb6cfcbe81398e4a28a191361ac53204b52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f76616c75652d6f626a6563742f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/teodoroleckie/value-object/build-status/main)[![Total Downloads](https://camo.githubusercontent.com/b2a22518570deb5ed27c8793c225c0913b5d1ebaf495ebaeef7c7eb5fdb05174/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746c65636b69652f76616c75652d6f626a6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tleckie/value-object)[![Code Intelligence Status](https://camo.githubusercontent.com/b517bcfb74e970dab772ab25376c481b4604c8035960fd208c5b720db170e7a9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74656f646f726f6c65636b69652f76616c75652d6f626a6563742f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/code-intelligence)

### Create your own value-object type:

[](#create-your-own-value-object-type)

You should only extend from the ValueObject class

```
