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

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

eppak/value
===========

Value Object Helper

1.0.0.0(8y ago)218MITPHPPHP &gt;=5.6.0CI failing

Since Jan 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eppak/value)[ Packagist](https://packagist.org/packages/eppak/value)[ RSS](/packages/eppak-value/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Intro
=====

[](#intro)

This is a smart dto object, is useful to transport and manipulate data. Usually a value object have getter and setter for a bunch of properties that represent data.

Installation
============

[](#installation)

```
# composer install eppak/value
```

Constructor
===========

[](#constructor)

Can be created in various modes, it accept usually an array of fields with values; the second optional parameter represent if property can be written or is readonly.

- As new.
- From an array.
- From JSON

If the object need to be readonly you can istantiate a **roValue** object istead ov **Value**.

Example of Initialization
=========================

[](#example-of-initialization)

```
