PHP Value Objects
Overview
Wikipedia has a pretty good general explanation of value objects.
-
Vo\DateRangefor date ranges -
Vo\DateTimeRangefor date and time ranges -
Vo\Ipfor IPv4 and IPv6 addresses -
Vo\Macfor MAC addresses -
Vo\Moneyfor financial math and formatting using theintlextension
Check the tests to get some ideas on how to use these classes.
Documentation
http://gws.github.com/php-valueobjects
Development
There is a Dockerfile in the docker directory which can be used to build a
version of PHP with the required extensions in order to run tests. If you have a
Dockerized composer, you need to pass the --ignore-platform-reqs option to
update, install etc. in order to skip the extension checks.
