Download the PHP package wmde/freezable-value-object without Composer
On this page you can find all versions of the php package wmde/freezable-value-object. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wmde/freezable-value-object
More information about wmde/freezable-value-object
Files in wmde/freezable-value-object
Package freezable-value-object
Short Description PHP Trait for creating freezable value objects
License GPL-2.0-or-later
Informations about the package freezable-value-object
FreezableValueObject
PHP Trait for creating freezable value objects.
For motivation and considerations, see Missing in PHP7: Value objects
Installation
To use the FreezableValueObject library in your project, simply add a dependency on wmde/freezable-value-object
to your project's composer.json
file. Here is a minimal example of a composer.json
file that just defines a dependency on FreezableValueObject 1.x:
Development
For development you need to have Docker and Docker-compose installed. Local PHP and Composer are not needed.
sudo apt-get install docker docker-compose
Running Composer
To pull in the project dependencies via Composer, run:
make composer install
You can run other Composer commands via make run
, but at present this does not support argument flags.
If you need to execute such a command, you can do so in this format:
docker run --rm --interactive --tty --volume $PWD:/app -w /app\
--volume ~/.composer:/composer --user $(id -u):$(id -g) composer composer install -vvv
Running the CI checks
To run all CI checks, which includes PHPUnit tests, PHPCS style checks and coverage tag validation, run:
make
Running the tests
To run just the PHPUnit tests run
make test
To run only a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run
docker-compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter