Skip to content

Commit

Permalink
Added optional Composer dependencies section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Oct 5, 2015
1 parent 9f437f6 commit 755759c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ version:
$ composer require woohoolabs/yin
```

If you want to take advantage from request/response validation then you have to ask for the following
dependencies too:

```bash
$ composer require justinrainbow/json-schema # version 1.5.0 is tested
$ composer require seld/jsonlint # version 1.3.1 is tested
```

## Basic usage

When using Woohoo Labs. Yin, you will create:
Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"phpunit/PHPUnit": "^4.4.0",
"squizlabs/php_codesniffer": "^2.3.1"
},
"suggest": {
"justinrainbow/json-schema": "Allows to validate the request and response body against the JSON API schema (version 1.5.0 is tested)",
"seld/jsonlint": "Allows to lint the request and response body (version 1.3.1 is tested)"
},
"autoload": {
"psr-4": {
"WoohooLabs\\Yin\\": "src/"
Expand Down
1 change: 0 additions & 1 deletion src/JsonApi/Exception/ResourceNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace WoohooLabs\Yin\JsonApi\Exception;

use WoohooLabs\Yin\JsonApi\Schema\Error;
use WoohooLabs\Yin\JsonApi\Schema\ErrorSource;

class ResourceNotFound extends JsonApiException
{
Expand Down

0 comments on commit 755759c

Please sign in to comment.