This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
Releases: shrink/examples
Releases · shrink/examples
v2.0.1
v2.0.0
What's Changed
PHP >=8.1 is required as of v2.
- feat: Replace
parameters
array with named arguments by @shrink in #12 - docs: Provide example of nested examples by @shrink in #17
- docs: Link to v1 for PHP <8.1 support by @shrink in #20
- style: Make code prettier by @shrink in #21
- docs: Clarify language used to describe example vs. object by @shrink in #23
Full Changelog: v1.1.0...v2.0.0
v1.1.0
v1.0.0
v0.2.0
Adds simplified example registration using definitions, e.g:
use Shrink\Examples\Definition;
use Shrink\Examples\ReflectionBuilder;
$examples->register(new Definition(
Person::class,
new ReflectionBuilder(Person::class),
[
'name' => 'Alice',
'age' => 30,
]
));