Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Releases: shrink/examples

v2.0.1

18 Sep 18:14
v2.0.1
e693a8d
Compare
Choose a tag to compare
  • fix: Remove erroneous non-dev dependency by @shrink in #27

Full Changelog: v2.0.0...v2.0.1

v2.0.0

18 Sep 16:50
v2.0.0
9047e84
Compare
Choose a tag to compare

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

24 Dec 01:21
v1.1.0
f2e6ab4
Compare
Choose a tag to compare
  • 🆙 Add support for PHP 8 (#10)

v1.0.0

01 Oct 13:53
v1.0.0
aec2f50
Compare
Choose a tag to compare

Library validated through usage in multiple projects and is now considered production ready.

v0.2.0

03 May 18:42
5472e06
Compare
Choose a tag to compare

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,
    ]
));

v0.1.0

02 May 20:08
14f31cb
Compare
Choose a tag to compare
Merge pull request #3 from shrink/feature/reflection-builder

Allow implicit building of instances using reflection