{"id":15673169,"url":"https://github.com/nilportugues/laravel5-hal-json","last_synced_at":"2025-10-21T07:11:49.593Z","repository":{"id":36491858,"uuid":"40797481","full_name":"nilportugues/laravel5-hal-json","owner":"nilportugues","description":"Laravel 5 HAL+JSON API Transformer Package","archived":false,"fork":false,"pushed_at":"2017-03-21T16:30:37.000Z","size":51,"stargazers_count":15,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T22:02:41.611Z","etag":null,"topics":["api","hal","json","jsonapi","laravel","laravel5","lumen","marshaller","microservice","microservices","php","php7","serialization","serializer","transformer","xml"],"latest_commit_sha":null,"homepage":"http://nilportugues.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilportugues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-16T03:26:28.000Z","updated_at":"2022-02-12T07:13:23.000Z","dependencies_parsed_at":"2022-09-06T10:30:24.728Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/laravel5-hal-json","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Flaravel5-hal-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Flaravel5-hal-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Flaravel5-hal-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Flaravel5-hal-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/laravel5-hal-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776579,"owners_count":21802467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","hal","json","jsonapi","laravel","laravel5","lumen","marshaller","microservice","microservices","php","php7","serialization","serializer","transformer","xml"],"created_at":"2024-10-03T15:38:05.256Z","updated_at":"2025-10-21T07:11:49.518Z","avatar_url":"https://github.com/nilportugues.png","language":"PHP","funding_links":["https://paypal.me/nilportugues"],"categories":[],"sub_categories":[],"readme":"# Laravel 5 HAL+JSON \n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nilportugues/laravel5-hal-json-transformer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nilportugues/laravel5-hal-json-transformer/?branch=master) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/93029d8e-7052-42e0-a7db-fabbd2e566d5/mini.png?)](https://insight.sensiolabs.com/projects/93029d8e-7052-42e0-a7db-fabbd2e566d5) \n[![Latest Stable Version](https://poser.pugx.org/nilportugues/laravel5-haljson/v/stable?)](https://packagist.org/packages/nilportugues/laravel5-haljson) \n[![Total Downloads](https://poser.pugx.org/nilportugues/laravel5-haljson/downloads?)](https://packagist.org/packages/nilportugues/laravel5-haljson) \n[![License](https://poser.pugx.org/nilportugues/laravel5-haljson/license?)](https://packagist.org/packages/nilportugues/laravel5-haljson) \n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://paypal.me/nilportugues)\n\n1. [Installation](#1-installation)\n2. [Configuration](#2-configuration)\n3. [Mapping](#3-mapping)\n    - 3.1 [Mapping with arrays](#31-mapping-with-arrays)\n    - 3.2 [Mapping with Mapping class](#32-mapping-with-mapping-class)\n4. [HAL Serialization](#4-hal-serialization)\n5. [HAL Paginated Resource](#5-hal-paginated-resource)\n6. [PSR-7 Response Objects](#6-response-objects)\n\n## 1. Installation\n\nUse [Composer](https://getcomposer.org) to install the package:\n\n```\n$ composer require nilportugues/laravel5-haljson\n```\n\n## 2. Configuration\n\nOpen up `config/app.php` and add the following line under `providers` array:\n\n```php\n'providers' =\u003e [\n\n    //...\n    \\NilPortugues\\Laravel5\\HalJson\\Laravel5HalJsonServiceProvider::class,\n],\n```\n\nAlso, enable Facades by uncommenting:\n\n```php\n$app-\u003ewithFacades();\n```\n\n## 3. Mapping\n\nFor instance, lets say the following object has been fetched from a Repository , lets say `PostRepository` - this being implemented in Eloquent or whatever your flavour is:\n\n```php\nuse Acme\\Domain\\Dummy\\Post;\nuse Acme\\Domain\\Dummy\\ValueObject\\PostId;\nuse Acme\\Domain\\Dummy\\User;\nuse Acme\\Domain\\Dummy\\ValueObject\\UserId;\nuse Acme\\Domain\\Dummy\\Comment;\nuse Acme\\Domain\\Dummy\\ValueObject\\CommentId;\n\n//$postId = 9;\n//PostRepository::findById($postId); \n\n$post = new Post(\n  new PostId(9),\n  'Hello World',\n  'Your first post',\n  new User(\n      new UserId(1),\n      'Post Author'\n  ),\n  [\n      new Comment(\n          new CommentId(1000),\n          'Have no fear, sers, your king is safe.',\n          new User(new UserId(2), 'Barristan Selmy'),\n          [\n              'created_at' =\u003e (new \\DateTime('2015/07/18 12:13:00'))-\u003eformat('c'),\n              'accepted_at' =\u003e (new \\DateTime('2015/07/19 00:00:00'))-\u003eformat('c'),\n          ]\n      ),\n  ]\n);\n```\n\nWe will have to map all the involved classes. This can be done as one single array, or a series of Mapping classes.\n\nAlso we will require to have routes. The routes must be named routes. \n\nFor instance our `app/Http/routes.php` file contains the following routes: \n\n```php\nRoute::get(\n  '/docs/rels/{rel}',\n  ['as' =\u003e 'get_example_curie_rel', 'uses' =\u003e 'ExampleCurieController@getRelAction']\n);\n\n\nRoute::get(\n  '/post/{postId}',\n  ['as' =\u003e 'get_post', 'uses' =\u003e 'PostController@getPostAction']\n);\n\nRoute::get(\n  '/post/{postId}/comments',\n  ['as' =\u003e 'get_post_comments', 'uses' =\u003e 'CommentsController@getPostCommentsAction']\n);\n\n//...\n```\n\n\n### 3.1 Mapping with arrays\n\nCreate a `haljson.php` file in `config/` directory. This file should return an array returning all the class mappings.\n\nAnd a series of mappings, placed in `bootstrap/haljson.php`, that require to use *named routes* so we can use the `route()` helper function:\n\n```php\n\u003c?php\n//bootstrap/haljson.php\nreturn [\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\Post',\n        'alias' =\u003e 'Message',\n        'aliased_properties' =\u003e [\n            'author' =\u003e 'author',\n            'title' =\u003e 'headline',\n            'content' =\u003e 'body',\n        ],\n        'hide_properties' =\u003e [\n\n        ],\n        'id_properties' =\u003e [\n            'postId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_post'], //named route\n            'comments' =\u003e ['name' =\u003e 'get_post_comments'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\ValueObject\\PostId',\n        'alias' =\u003e '',\n        'aliased_properties' =\u003e [],\n        'hide_properties' =\u003e [],\n        'id_properties' =\u003e [\n            'postId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_post'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\User',\n        'alias' =\u003e '',\n        'aliased_properties' =\u003e [],\n        'hide_properties' =\u003e [],\n        'id_properties' =\u003e [\n            'userId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_user'],//named route\n            'friends' =\u003e ['name' =\u003e 'get_user_friends'],//named route\n            'comments' =\u003e ['name' =\u003e 'get_user_comments'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\ValueObject\\UserId',\n        'alias' =\u003e '',\n        'aliased_properties' =\u003e [],\n        'hide_properties' =\u003e [],\n        'id_properties' =\u003e [\n            'userId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_user'],//named route\n            'friends' =\u003e ['name' =\u003e 'get_user_friends'],//named route\n            'comments' =\u003e ['name' =\u003e 'get_user_comments'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\Comment',\n        'alias' =\u003e '',\n        'aliased_properties' =\u003e [],\n        'hide_properties' =\u003e [],\n        'id_properties' =\u003e [\n            'commentId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_comment'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n    [\n        'class' =\u003e 'Acme\\Domain\\Dummy\\ValueObject\\CommentId',\n        'alias' =\u003e '',\n        'aliased_properties' =\u003e [],\n        'hide_properties' =\u003e [],\n        'id_properties' =\u003e [\n            'commentId',\n        ],\n        'urls' =\u003e [\n            'self' =\u003e ['name' =\u003e 'get_comment'],//named route\n        ],\n        'curies' =\u003e [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ]\n    ],\n];\n\n```\n\n### 3.2 Mapping with Mapping class\n\nIn order to map with Mapping class, you need to create a new class for each involved class.\n\nThis mapping fashion scales way better than using an array. Place each mapping in a separate file.\n\nAll Mapping classes will extend the `\\NilPortugues\\Api\\Mappings\\HalMapping` interface. \n\n```php\n\u003c?php\n\nclass PostMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping {\n\n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\Post';\n    }\n\n    public function getAlias()\n    {\n        return 'Message';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [\n            'author' =\u003e 'author',\n            'title' =\u003e 'headline',\n            'content' =\u003e 'body',\n        ];\n    }\n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['postId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_post'], //named route\n            'comments' =\u003e ['name' =\u003e 'get_post_comments'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}\n\nclass PostIdMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping{\n\n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\ValueObject\\PostId';\n    }\n\n    public function getAlias()\n    {\n        return '';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [];\n    }\n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['postId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_post'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}\n\nclass UserMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping{\n\n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\User';\n    }\n\n    public function getAlias()\n    {\n        return '';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [];\n    }\n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['userId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_user'],//named route\n            'friends' =\u003e ['name' =\u003e 'get_user_friends'],//named route\n            'comments' =\u003e ['name' =\u003e 'get_user_comments'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}\n\nclass UserIdMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping{    \n    \n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\ValueObject\\UserId';\n    }\n\n    public function getAlias()\n    {\n        return '';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [];\n    }\n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['userId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_user'],//named route\n            'friends' =\u003e ['name' =\u003e 'get_user_friends'],//named route\n            'comments' =\u003e ['name' =\u003e 'get_user_comments'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}\n\nclass CommentMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping{\n\n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\Comment';\n    }\n\n    public function getAlias()\n    {\n        return '';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [];\n    }\n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['commentId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_comment'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}\n\nclass CommentIdMapping implements \\NilPortugues\\Api\\Mappings\\HalMapping{\n\n    public function getClass()\n    {\n        return 'Acme\\Domain\\Dummy\\ValueObject\\CommentId';\n    }\n\n    public function getAlias()\n    {\n        return '';\n    }\n\n    public function getAliasedProperties()\n    {\n        return [];\n    }    \n\n    public function getHideProperties()\n    {\n        return [];\n    }\n\n    public function getIdProperties()\n    {\n        return ['commentId'];\n    }\n\n    public function getUrls()\n    {\n        return [\n            'self' =\u003e ['name' =\u003e 'get_comment'],//named route\n        ];\n    }\n\n    public function getCuries()\n    {\n        return [\n            'name' =\u003e 'example',\n            'href' =\u003e \"http://example.com/docs/rels/{rel}\",\n        ];\n    }\n}    \n```\n\nAll the mappings will be contained in the array in the `bootstrap/haljson.php`, but this time the fully qualified class name is required instead.\n\n```php\n\u003c?php\n//bootstrap/haljson.php\nreturn [\n    \"\\Acme\\Mappings\\PostMapping\",\n    \"\\Acme\\Mappings\\PostIdMapping\",\n    \"\\Acme\\Mappings\\UserMapping\",\n    \"\\Acme\\Mappings\\UserIdMapping\",\n    \"\\Acme\\Mappings\\CommentMapping\",\n    \"\\Acme\\Mappings\\CommentIdMapping\",\n];\n```\n\n## 3. HAL Serialization\n\nAll of this set up allows you to easily use the `Serializer` service as follows:\n\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse Acme\\Domain\\Dummy\\PostRepository;\nuse NilPortugues\\Laravel5\\HalJson\\HalJsonResponseTrait;\n\n\nclass PostController extends \\App\\Http\\Controllers\\Controller\n{\n    use HalJsonResponseTrait;\n       \n   /**\n    * @var PostRepository\n    */\n   protected $postRepository;\n\n   /**\n    * @var HalJson\n    */\n   protected $serializer;\n\n   /**\n    * @param PostRepository $postRepository\n    * @param HalJson $HalJson\n    */\n   public function __construct(PostRepository $postRepository, HalJson $HalJson)\n   {\n       $this-\u003epostRepository = $postRepository;\n       $this-\u003eserializer = $HalJson;\n   }\n\n   /**\n    * @param int $postId\n    *\n    * @return \\Symfony\\Component\\HttpFoundation\\Response\n    */\n   public function getPostAction($postId)\n   {\n       $post = $this-\u003epostRepository-\u003efindById($postId);\n\n       return $this-\u003eresponse($this-\u003eserializer-\u003eserialize($post));\n   }\n}\n```\n\n**Output:**\n\n```\nHTTP/1.1 200 OK\nCache-Control: protected, max-age=0, must-revalidate\nContent-type: application/hal+json\n```\n\n```json\n{\n    \"post_id\": 9,\n    \"headline\": \"Hello World\",\n    \"body\": \"Your first post\",\n    \"_embedded\": {\n        \"author\": {\n            \"user_id\": 1,\n            \"name\": \"Post Author\",\n            \"_links\": {\n                \"self\": {\n                    \"href\": \"http://example.com/users/1\"\n                },\n                \"example:friends\": {\n                    \"href\": \"http://example.com/users/1/friends\"\n                },\n                \"example:comments\": {\n                    \"href\": \"http://example.com/users/1/comments\"\n                }\n            }\n        },\n        \"comments\": [\n            {\n                \"comment_id\": 1000,\n                \"dates\": {\n                    \"created_at\": \"2015-08-13T22:47:45+02:00\",\n                    \"accepted_at\": \"2015-08-13T23:22:45+02:00\"\n                },\n                \"comment\": \"Have no fear, sers, your king is safe.\",\n                \"_embedded\": {\n                    \"user\": {\n                        \"user_id\": 2,\n                        \"name\": \"Barristan Selmy\",\n                        \"_links\": {\n                            \"self\": {\n                                \"href\": \"http://example.com/users/2\"\n                            },\n                            \"example:friends\": {\n                                \"href\": \"http://example.com/users/2/friends\"\n                            },\n                            \"example:comments\": {\n                                \"href\": \"http://example.com/users/2/comments\"\n                            }\n                        }\n                    }\n                },\n                \"_links\": {\n                    \"example:user\": {\n                        \"href\": \"http://example.com/users/2\"\n                    },\n                    \"self\": {\n                        \"href\": \"http://example.com/comments/1000\"\n                    }\n                }\n            }\n        ]\n    },\n    \"_links\": {\n        \"curies\": [\n            {\n                \"name\": \"example\",\n                \"href\": \"http://example.com/docs/rels/{rel}\",\n                \"templated\": true\n            }\n        ],\n        \"self\": {\n            \"href\": \"http://example.com/posts/9\"\n        },\n        \"example:author\": {\n            \"href\": \"http://example.com/users/1\"\n        },\n        \"example:comments\": {\n            \"href\": \"http://example.com/posts/9/comments\"\n        }\n    }\n}\n```\n\n\n## 5. HAL Paginated Resource\n\nA pagination object to easy the usage of this package is provided. \n\nFor both XML and JSON output, use the `HalPagination` object to build your paginated representation of the current resource.\n \nMethods provided by `HalPagination` are as follows: \n\n - `setSelf($self)`\n - `setFirst($first)`\n - `setPrev($prev)`\n - `setNext($next)`\n - `setLast($last)`\n - `setCount($count)`\n - `setTotal($total)`\n - `setEmbedded(array $embedded)`\n \nIn order to use it, create a new HalPagination instance, use the setters and pass the instance to the `serialize($value)` method of the serializer. \n\nEverything else will be handled by serializer itself. Easy as that!\n \n```php\nuse NilPortugues\\Api\\Hal\\HalPagination; \nuse NilPortugues\\Api\\Hal\\HalSerializer; \nuse NilPortugues\\Api\\Hal\\JsonTransformer; \n\n// ...\n//$objects is an array of objects, such as Post::class.\n// ...\n \n$page = new HalPagination();\n\n//set the amounts\n$page-\u003esetTotal(20);\n$page-\u003esetCount(10);\n\n//set the objects\n$page-\u003esetEmbedded($objects);\n\n//set up the pagination links\n$page-\u003esetSelf('/post?page=1');\n$page-\u003esetPrev('/post?page=1');\n$page-\u003esetFirst('/post?page=1');\n$page-\u003esetLast('/post?page=1');\n\n$output = $serializer-\u003eserialize($page);\n\n``` \n\n## 6. Response objects\n\nThe following `HalJsonResponseTrait` methods are provided to return the right headers and HTTP status codes are available:\n\n```php\n    protected function errorResponse($json);\n    protected function resourceCreatedResponse($json);\n    protected function resourceDeletedResponse($json);\n    protected function resourceNotFoundResponse($json);\n    protected function resourcePatchErrorResponse($json);\n    protected function resourcePostErrorResponse($json);\n    protected function resourceProcessingResponse($json);\n    protected function resourceUpdatedResponse($json);\n    protected function response($json);\n    protected function unsupportedActionResponse($json);\n```    \n\n## Quality\n\nTo run the PHPUnit tests at the command line, go to the tests directory and issue phpunit.\n\nThis library attempts to comply with [PSR-1](http://www.php-fig.org/psr/psr-1/), [PSR-2](http://www.php-fig.org/psr/psr-2/), [PSR-4](http://www.php-fig.org/psr/psr-4/) and [PSR-7](http://www.php-fig.org/psr/psr-7/).\n\nIf you notice compliance oversights, please send a patch via [Pull Request](https://github.com/nilportugues/laravel5-hal-json/pulls).\n\n## Contribute\n\nContributions to the package are always welcome!\n\n* Report any bugs or issues you find on the [issue tracker](https://github.com/nilportugues/laravel5-hal-json/issues/new).\n* You can grab the source code at the package's [Git repository](https://github.com/nilportugues/laravel5-hal-json).\n\n\n## Support\n\nGet in touch with me using one of the following means:\n\n - Emailing me at \u003ccontact@nilportugues.com\u003e\n - Opening an [Issue](https://github.com/nilportugues/laravel5-hal-json/issues/new)\n\n## Authors\n\n* [Nil Portugués Calderó](http://nilportugues.com)\n* [The Community Contributors](https://github.com/nilportugues/laravel5-hal-json/graphs/contributors)\n\n\n## License\nThe code base is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Flaravel5-hal-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Flaravel5-hal-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Flaravel5-hal-json/lists"}