spaceonfire / value-object
Value Object library for PHP
Fund package maintenance!
Liberapay
Requires
- php: ^7.2|^8.0
- ext-json: *
- guzzlehttp/psr7: ^1.6
- jawira/case-converter: ^3.4
- spaceonfire/laminas-hydrator-bridge: ^2.5
- webmozart/assert: ^1.6
Requires (Dev)
- laminas/laminas-hydrator: ^3.0|^4.0
- ramsey/uuid: ^3.9|^4.0
Suggests
- laminas/laminas-hydrator: There is hydrator strategy integration for this package
- ramsey/uuid: To use UuidValue
README
Value Object library for PHP.
Install
Via Composer
$ composer require spaceonfire/value-object
Usage
$int = new class(10) extends \spaceonfire\ValueObject\IntValue {}; \Webmozart\Assert\Assert::same($int->value(), 10);
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Report issues and send Pull Requests in the main spaceonfire repository. Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Credits
License
The MIT License (MIT). Please see License File for more information.