Skip to content

Commit

Permalink
Merge pull request #7 from ghostwriter/update-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ghostwriter committed Aug 9, 2022
2 parents 567b447 + a9ac5ab commit 126bf5f
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ composer require ghostwriter/json

```php
use \Ghostwriter\Json\Json;
$encode = Json::encode(['foo'=>'bar']); // {"foo":"bar"}
$decode = Json::decode($encode); // ['foo'=>'bar']

$encode = Json::encode(['foo'=>'bar']);
// {"foo":"bar"}

$decode = Json::decode($encode);
// ['foo'=>'bar']

Json::encode($decode, Json::PRETTY);
// {
// "foo":"bar"
// }
```

## Testing
Expand All @@ -40,19 +49,7 @@ If you discover any security related issues, please email `nathanael.esayeas@pro

## Sponsors

[![ghostwriter's GitHub Sponsors](https://img.shields.io/github/sponsors/ghostwriter?label=Sponsors&logo=GitHub%20Sponsors)](https://github.com/sponsors/ghostwriter)

Maintaining open source software is a thankless, time-consuming job.

Sponsorships are one of the best ways to contribute to the long-term sustainability of an open-source licensed project.

Please consider giving back, to fund the continued development of `ghostwriter/wip`, by sponsoring me here on GitHub.

[[Become a GitHub Sponsor](https://github.com/sponsors/ghostwriter)]

### For Developers

Please consider helping your company become a GitHub Sponsor, to support the open-source licensed project that runs your business.
[[`Become a GitHub Sponsor`](https://github.com/sponsors/ghostwriter)]

## Credits

Expand Down

0 comments on commit 126bf5f

Please sign in to comment.