PHPackages                             rmasters/github-service-provider - 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. rmasters/github-service-provider

ActiveLibrary[API Development](/categories/api)

rmasters/github-service-provider
================================

Pimple service provider for KnpLabs' GitHub API wrapper

v0.2.0(11y ago)110MITPHP

Since Jul 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rmasters/GitHubServiceProvider)[ Packagist](https://packagist.org/packages/rmasters/github-service-provider)[ RSS](/packages/rmasters-github-service-provider/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Pimple GitHub API service provider
==================================

[](#pimple-github-api-service-provider)

Provides the [KnpLabs GitHub API wrapper](https://github.com/knplabs/php-github-api) to Pimple (Silex, Cilex) applications.

Installation
------------

[](#installation)

1. Composer require this package:

    ```
    composer require "rmasters/github-service-provider:~1.0"

    ```
2. Register in your application:

    ```
    $app = new Silex\Application;
    $app = new Pimple\Container;

    $app->register(new Rossible\Provider\GitHubProvider\GitHubServiceProvider);
    ```

This package requires Pimple 3.x and uses the ServiceProviderInterface and Container interfaces/type-hints that it provides. Silex 2.0 supports this, and Cilex should do soon.

Configuration
-------------

[](#configuration)

You can modify the `GitHub\Client` construction by extending these services:

ServiceDescriptionDefaultgithub.clientThe Github\\Client instance`Github\Client`github.httpclientThe [HttpClient](https://github.com/KnpLabs/php-github-api/tree/master/lib/Github/HttpClient) used for making requests`CachedHttpClient`github.httpclient.cachingWhen true, uses a CachedHttpClient`true`github.httpclient.optionsOptions array passed to HttpClient`[]`github.httpclient.cacheThe [Response cache](https://github.com/KnpLabs/php-github-api/tree/master/lib/Github/HttpClient/Cache) to use`FilesystemCache`github.httpclient.cache.pathWhen using FilesystemCache, where to store cached responses`sys_get_temp_dir()`To change these, [extend or replace the service](http://pimple.sensiolabs.org/#modifying-services-after-definition), for example:

```
// Toggle the caching variable
$app['github.httpclient.caching'] = false;

// Use a subdirectory in the temp directory
$app->extend('github.httpclient.cache.path', function($path, $app) {
    $path .= '/github-responses';
    mkdir($path, 776);

    return $path;
});

// Set a custom Accept header to access pre-release features
$app->extend('github.httpclient', function (HttpClientInterface $httpclient, $app) {
    $httpclient->setHeaders(['Accept' => 'application/vnd.github.she-hulk-preview+json']);

    return $httpclient;
});
```

License
-------

[](#license)

Released under the [MIT License](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~0 days

Total

2

Last Release

4313d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32d44b8b36e16d8e06b489556da46a1e839726b0d6003fcd2642a3c94c8069f7?d=identicon)[rmasters](/maintainers/rmasters)

---

Top Contributors

[![rmasters](https://avatars.githubusercontent.com/u/34284?v=4)](https://github.com/rmasters "rmasters (3 commits)")

---

Tags

githubservice providersilexpimple

### Embed Badge

![Health badge](/badges/rmasters-github-service-provider/health.svg)

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

###  Alternatives

[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[cilex/console-service-provider

Console Service Provider

273.1M3](/packages/cilex-console-service-provider)[dflydev/doctrine-orm-service-provider

Doctrine ORM Service Provider

2081.7M35](/packages/dflydev-doctrine-orm-service-provider)[tobiassjosten/facebook-service-provider

Silex ServiceProvider for the Facebook SDK

266.1k](/packages/tobiassjosten-facebook-service-provider)[phpsa/laravel-postman

Export laravel API routes to postman

1014.7k](/packages/phpsa-laravel-postman)

PHPackages © 2026

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