Skip to content

Commit 1f48a04

Browse files
committed
add doc
1 parent 68401db commit 1f48a04

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@
55
[![Total Downloads](https://img.shields.io/packagist/dt/morrislaptop/symfony-custom-normalizers.svg?style=flat-square)](https://packagist.org/packages/morrislaptop/symfony-custom-normalizers)
66

77

8-
This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.
9-
10-
## Support us
11-
12-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/package-skeleton-php.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/package-skeleton-php)
13-
14-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
15-
16-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
8+
A collection of normalizers that can be used with the Symfony serializer.
179

1810
## Installation
1911

@@ -26,10 +18,17 @@ composer require morrislaptop/symfony-custom-normalizers
2618
## Usage
2719

2820
```php
29-
$skeleton = new Morrislaptop\SymfonyCustomNormalizers();
30-
echo $skeleton->echoPhrase('Hello, Morrislaptop!');
21+
$serializer = new Symfony\Serializer([
22+
new Morrislaptop\SymfonyCustomNormalizers\MoneyNormalizer(),
23+
new Morrislaptop\SymfonyCustomNormalizers\DatePeriodNormalizer(),
24+
...
25+
])
3126
```
3227

28+
## Plug
29+
30+
Use Laravel? Easily cast your objects using the Symfony serializer with [morrislaptop/laravel-popo-caster](https://github.com/morrislaptop/laravel-popo-caster)
31+
3332
## Testing
3433

3534
```bash

0 commit comments

Comments
 (0)