PHPackages                             muffin/github - 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. muffin/github

ActiveCakephp-plugin[API Development](/categories/api)

muffin/github
=============

Github Webservice (API) for CakePHP 3.

1.0(9y ago)21.2k2MITPHP

Since May 31Pushed 9y ago2 watchersCompare

[ Source](https://github.com/UseMuffin/Github)[ Packagist](https://packagist.org/packages/muffin/github)[ Docs](https://github.com/usemuffin/github)[ RSS](/packages/muffin-github/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Github
======

[](#github)

[![Build Status](https://camo.githubusercontent.com/64a5b0add4826015ad34f4a0db4356ec4e7c40491962ba87c660e3f059cd1596/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5573654d756666696e2f4769746875622f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/UseMuffin/Github)[![Coverage](https://camo.githubusercontent.com/7d55f49c3f58096d6b5f8fead46899b7d9bf1822dab3e8b185e2ad9cfd7925e6/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5573654d756666696e2f4769746875622f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/UseMuffin/Github)[![Total Downloads](https://camo.githubusercontent.com/177ed73d1174f5c00296075c2d64253816cae782bebb258eed6cce1b03ebfb98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d756666696e2f6769746875622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/muffin/github)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Github Webservice (API) for CakePHP 3.

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require muffin/github:dev-master

```

You then need to load the plugin. You can use the shell command:

```
bin/cake plugin load Muffin/Github

```

or by manually adding statement shown below to `boostrap.php`:

```
Plugin::load('Muffin/Github');
```

Usage
-----

[](#usage)

In your `app.php`, configure your `github` service like any other configuration, by adding a new element to the configure array:

```
    'Webservices' => [
        'github' => [
            'className' => 'Muffin\Webservice\Connection',
            'service' => 'Muffin/Github.Github',
        ]
    ]
```

or, to use a token for example (and full namespaced driver):

```
    'Webservices' => [
        'github' => [
            'className' => 'Muffin\Webservice\Connection',
            'service' => 'Muffin\Github\Webservice\Driver\Github',
            'token' => env('GITHUB_TOKEN'),
        ]
    ]
```

or using your username/password combination:

```
    'Webservices' => [
        'github' => [
            'className' => 'Muffin\Webservice\Connection',
            'service' => 'Muffin/Github.Github',
            'username' => env('GITHUB_USERNAME'),
            'password' => env('GITHUB_PASSWORD'),
        ]
    ]
```

or using your client ID and secret:

```
    'Webservices' => [
        'github' => [
            'className' => 'Muffin\Webservice\Connection',
            'service' => 'Muffin/Github.Github',
            'clientId' => env('GITHUB_CLIENT_ID'),
            'secret' => env('GITHUB_SECRET'),
        ]
    ]
```

You will also need to load the webservices if you haven't already done that in your `bootstrap.php` file:

```
ConnectionManager::config(Configure::consume('Webservices'));
```

Now, from anywhere, you could call the webservice like so:

```
$connection = ConnectionManager:get('github');
$repo = $connection->api('repo')->show('usemuffin', 'github');
```

Patches &amp; Features
----------------------

[](#patches--features)

- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches

To ensure your PRs are considered for upstream, you MUST follow the CakePHP coding standards.

Bugs &amp; Feedback
-------------------

[](#bugs--feedback)

License
-------

[](#license)

Copyright (c) 2015, \[Use Muffin\] and licensed under [The MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

3639d ago

### Community

Maintainers

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

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

---

Top Contributors

[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (8 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (2 commits)")[![davidyell](https://avatars.githubusercontent.com/u/49889?v=4)](https://github.com/davidyell "davidyell (2 commits)")

---

Tags

apicakephpgithubwebservicemuffin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/muffin-github/health.svg)

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

###  Alternatives

[muffin/webservice

Simplistic webservices for CakePHP

88191.0k13](/packages/muffin-webservice)[a2design-company/mandrill-cakephp-plugin

Mandrill CakePHP plugin

193.2k](/packages/a2design-company-mandrill-cakephp-plugin)

PHPackages © 2026

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