PHPackages                             guancheng/msgpack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. guancheng/msgpack

ActiveLibrary[API Development](/categories/api)

guancheng/msgpack
=================

The lumen api response wrapper for rybakit/msgpack.

0.2(8y ago)1181MITPHPPHP &gt;=5.5.9

Since May 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sc0Vu/msgpack)[ Packagist](https://packagist.org/packages/guancheng/msgpack)[ RSS](/packages/guancheng-msgpack/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

msgpack
=======

[](#msgpack)

[![Build Status](https://camo.githubusercontent.com/2329fadf181d79a92f940bddb5277b368c4f03f3e5c0a7ec422153f7c17665a6/68747470733a2f2f7472617669732d63692e6f72672f73633056752f6d73677061636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sc0Vu/msgpack)[![codecov](https://camo.githubusercontent.com/036ae19b01fb5943092b9bdbc489691ab61a28e532cd9bc43b4b7cfdddd74f87/68747470733a2f2f636f6465636f762e696f2f67682f73633056752f6d73677061636b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/sc0Vu/msgpack)[![Dependency Status](https://camo.githubusercontent.com/703bf56318d03aa662dc657a727843b93e8e71ba3db4d314145a1ae9c72d045e/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539323938616336303534366362303034323262336236362f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/59298ac60546cb00422b3b66)[![License](https://camo.githubusercontent.com/3a5b9a454473f2d786fba0fda7d57b9efb5094620a6e5dd63ec9aff253e54a53/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6368656e672f6d73677061636b2f6c6963656e7365)](https://packagist.org/packages/guancheng/msgpack)

The lumen api response wrapper for rybakit/msgpack.

Install
=======

[](#install)

```
composer require guancheng/msgpack

```

or

```
clone / download this repo

```

Usage
=====

[](#usage)

### Response

[](#response)

```
use Illuminate\Routing\Controller;
use LGC\Msgpack\MsgpackResponse;

class TestController extends Controller
{
    public function test()
    {
        return new MsgpackResponse([
            'success' => true
        ]);
    }
}

```

If you want to return Arrayable object, just do it!

```
use Illuminate\Support\Collection;
use Illuminate\Routing\Controller;
use LGC\Msgpack\MsgpackResponse;

class TestController extends Controller
{
    public function test()
    {
        return new MsgpackResponse([
            'success' => true,
            'data' => new Collection([
            	'hello' => 'lumtify'
            ])
        ]);
    }
}

```

> When use arrayable types you have to notice: due to we don't remember pack data type, so the getData() always return array

### Test

[](#test)

```
use LGC\Msgpack\MsgpackConcern;

class TestApiTest extends PHPUnit_Framework_TestCase
{
    use MsgpackConcern;

    public function testShouldSeeMsgpack()
    {
    	$this->shouldSeeMsgpack();
    }
}

```

Development
===========

[](#development)

```
clone the repo

composer install

```

Roadmap
=======

[](#roadmap)

> Make other laravel data type transformer.

Licence
=======

[](#licence)

MIT

Support on Beerpay
------------------

[](#support-on-beerpay)

Hey dude! Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/8c8c1231204f68a1900464fa18cde76bf3593702f28d20a1744e949f55f437f7/68747470733a2f2f626565727061792e696f2f73633056752f6d73677061636b2f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/sc0Vu/msgpack) [![Beerpay](https://camo.githubusercontent.com/577601ccd1cb5daeb99f37ecd040f10a5a030c0eb676584722731169c101b231/68747470733a2f2f626565727061792e696f2f73633056752f6d73677061636b2f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/sc0Vu/msgpack?focus=wish)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

2

Last Release

3270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7fa46b233bd4a92ea54ea93d1c1b30b027a6a2b8b0b7f01f2f15abcf5a71281?d=identicon)[sc0Vu](/maintainers/sc0Vu)

---

Top Contributors

[![sc0Vu](https://avatars.githubusercontent.com/u/10494397?v=4)](https://github.com/sc0Vu "sc0Vu (14 commits)")

---

Tags

apilaravellumenmsgpackrest-apiapilumenmsgpack

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/guancheng-msgpack/health.svg)

```
[![Health](https://phpackages.com/badges/guancheng-msgpack/health.svg)](https://phpackages.com/packages/guancheng-msgpack)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[dragon-code/laravel-json-response

Automatically always return a response in JSON format

1118.6k1](/packages/dragon-code-laravel-json-response)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
