Skip to content
Files used in my talk "Working with Value Objects in PHP"
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples
readme.md

readme.md

Working with Value Objects in PHP

These are the files used in my talk "Working with Value Objects in PHP".

Requirements

  • PHP 7.4+

Using Docker

You can use Docker to run the examples in this project, for example:

docker run --rm --volume $(pwd):/files --workdir /files  php:7.4-cli-alpine php samples/auto-validation.php

Fatal error: Uncaught InvalidArgumentException: JPY isn't a valid currency. in /files/samples/auto-validation.php:13
Stack trace:
#0 /files/samples/auto-validation.php(34): Price->__construct('JPY', 199.99)
#1 {main}
  thrown in /files/samples/auto-validation.php on line 13
You can’t perform that action at this time.