{"id":17175859,"url":"https://github.com/sc0vu/msgpack","last_synced_at":"2026-04-30T18:31:32.142Z","repository":{"id":56983519,"uuid":"92582909","full_name":"sc0Vu/msgpack","owner":"sc0Vu","description":"The lumen api response wrapper for rybakit/msgpack.","archived":false,"fork":false,"pushed_at":"2017-06-08T12:04:56.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T01:41:35.254Z","etag":null,"topics":["api","laravel","lumen","msgpack","rest-api"],"latest_commit_sha":null,"homepage":null,"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/sc0Vu.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":"2017-05-27T08:10:11.000Z","updated_at":"2017-09-16T05:27:01.000Z","dependencies_parsed_at":"2022-08-21T12:20:57.495Z","dependency_job_id":null,"html_url":"https://github.com/sc0Vu/msgpack","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fmsgpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fmsgpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fmsgpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fmsgpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sc0Vu","download_url":"https://codeload.github.com/sc0Vu/msgpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245353540,"owners_count":20601379,"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","laravel","lumen","msgpack","rest-api"],"created_at":"2024-10-14T23:57:55.659Z","updated_at":"2026-04-30T18:31:32.115Z","avatar_url":"https://github.com/sc0Vu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msgpack\n\n[![Build Status](https://travis-ci.org/sc0Vu/msgpack.svg?branch=master)](https://travis-ci.org/sc0Vu/msgpack)\n[![codecov](https://codecov.io/gh/sc0Vu/msgpack/branch/master/graph/badge.svg)](https://codecov.io/gh/sc0Vu/msgpack)\n[![Dependency Status](https://www.versioneye.com/user/projects/59298ac60546cb00422b3b66/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/59298ac60546cb00422b3b66)\n[![License](https://poser.pugx.org/guancheng/msgpack/license)](https://packagist.org/packages/guancheng/msgpack)\n\nThe lumen api response wrapper for rybakit/msgpack.\n\n# Install\n\n    composer require guancheng/msgpack\n\nor\n\n    clone / download this repo\n\n# Usage\n\n### Response\n    \n    use Illuminate\\Routing\\Controller;\n    use LGC\\Msgpack\\MsgpackResponse;\n\n    class TestController extends Controller\n\t{\n\t    public function test()\n\t    {\n\t        return new MsgpackResponse([\n\t            'success' =\u003e true\n\t        ]);\n\t    }\n\t}\n\nIf you want to return Arrayable object, just do it!\n    \n    use Illuminate\\Support\\Collection;\n    use Illuminate\\Routing\\Controller;\n    use LGC\\Msgpack\\MsgpackResponse;\n\n    class TestController extends Controller\n\t{\n\t    public function test()\n\t    {\n\t        return new MsgpackResponse([\n\t            'success' =\u003e true,\n\t            'data' =\u003e new Collection([\n\t            \t'hello' =\u003e 'lumtify'\n\t            ])\n\t        ]);\n\t    }\n\t}\n\n\u003e When use arrayable types you have to notice: due to we don't remember pack data type, so the getData() always return array\n\n### Test\n\n\tuse LGC\\Msgpack\\MsgpackConcern;\n\n\tclass TestApiTest extends PHPUnit_Framework_TestCase\n\t{\n\t    use MsgpackConcern;\n\n\t    public function testShouldSeeMsgpack()\n\t    {\n\t    \t$this-\u003eshouldSeeMsgpack();\n\t    }\n\t}\n\n# Development\n    \n    clone the repo\n\n    composer install\n\n# Roadmap\n    \n\u003e Make other laravel data type transformer.\n\n# Licence\n\nMIT\n\n\n## Support on Beerpay\nHey dude! Help me out for a couple of :beers:!\n\n[![Beerpay](https://beerpay.io/sc0Vu/msgpack/badge.svg?style=beer-square)](https://beerpay.io/sc0Vu/msgpack)  [![Beerpay](https://beerpay.io/sc0Vu/msgpack/make-wish.svg?style=flat-square)](https://beerpay.io/sc0Vu/msgpack?focus=wish)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0vu%2Fmsgpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc0vu%2Fmsgpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0vu%2Fmsgpack/lists"}