bizmate / valueobjects
A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.Forked from ytake/valueobjects due to unresponve PRs and broken builds.
Requires
- php: >=8.2
- ext-json: *
- laminas/laminas-validator: ^2.0
- league/geotools: ^1.1
- marc-mabe/php-enum: ^4.0 || ^3.0
- moneyphp/money: ^4.2
- ramsey/uuid: ^4.0 || ^3.0
Requires (Dev)
- pdepend/pdepend: ^2.2.4
- php-coveralls/php-coveralls: ^2.1.0
- phploc/phploc: *
- phpmd/phpmd: @stable
- phpunit/phpunit: ^11
- sebastian/phpcpd: *
- squizlabs/php_codesniffer: ~3.7
Replaces
- ytake/valueobjects: ^4.0
This package is auto-updated.
Last update: 2024-10-27 12:08:34 UTC
README
A PHP library/collection of classes aimed to help developers using and undestanding immutable objects.
This is fork of the educational package nicolopignatelli/valueobjects that aims to provide more functionality for basic tasks and act as a object oriented wrapper for PHP types.
Install
Supports >= PHP 7.0
$ composer require bizmate/valueobjects
Develop
To run tests, checks and get a shell to the development environment you need docker
, docker-compose
and make
.
Run composer and docker
Running make up
will build the php docker image and run composer install as part of it.
You can also open a shell inside the container, for instance to perform some commands like composer changes and updates
by running make bash
Run tests
You can run unit
make tests
code style checks and fixes
make phpcs
and `make phpcbf
or the security checker with
make securitychecker