nicolopignatelli/valueobjects

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.

Installs: 17 752

Dependents: 8

Stars: 219

Watchers: 18

Forks: 38

Open Issues: 2

Language: PHP

v3.0 2015-05-15 13:19 UTC

README

Build Status Scrutinizer Quality Score Code Coverage SensioLabsInsight

A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.

Should I use this library?

Although fully tested and maintained, ValueObjects has been developed mainly for educational purposes. Therefore, it can be used in small projects and to force yourself on thinking in terms of immutable objects and their interaction.

When approaching a project using Domain Driven Design, I would suggest to write your own Value Objects in a way they will reflect 100% your domain objects, without using any library or class designed to solve a general problem more than your specific one.

In short, learn from it then throw it away.

Documentation

Contributing

See CONTRIBUTING file.

License

ValueObjects is released under the MIT License. See the bundled LICENSE file for details.