gws / php-valueobjects
A collection of useful value objects for PHP
Installs: 70 310
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 1
Forks: 5
Open Issues: 2
pkg:composer/gws/php-valueobjects
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~2.0
Suggests
- ext-bcmath: *
- ext-intl: *
- ext-mbstring: *
This package is not auto-updated.
Last update: 2020-03-20 17:33:34 UTC
README
Overview
Wikipedia has a pretty good general explanation of value objects.
Vo\DateRangefor date rangesVo\DateTimeRangefor date and time rangesVo\Ipfor IPv4 and IPv6 addressesVo\Macfor MAC addressesVo\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.