Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric authored Nov 8, 2021
1 parent 830917a commit e5759dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Strongly typed hydrator for PHP 7.4+ (incl. PHP 8)
# Strongly typed hydrator for PHP 7.4+

> Great tool for your DTOs...
Expand All @@ -14,7 +14,7 @@
## Installation

```bash
composer require 'sunrise/hydrator:^2.0'
composer require 'sunrise/hydrator:^2.1'
```

## How to use?
Expand All @@ -24,7 +24,7 @@ composer require 'sunrise/hydrator:^2.0'
$object = (new \Sunrise\Hydrator\Hydrator)->hydrate(Foo::class, $data);

// or you can hydrate the object with JSON:
$object = (new \Sunrise\Hydrator\Hydrator)->hydrate(Foo::class, $json);
$object = (new \Sunrise\Hydrator\Hydrator)->hydrateWithJson(Foo::class, $json, $options = 0);

// output the result:
var_dump($object);
Expand Down

0 comments on commit e5759dd

Please sign in to comment.