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

ActiveLibrary[API Development](/categories/api)

duncan3dc/github
================

A library to interact with the GitHub API

0.9.1(1y ago)3117[1 issues](https://github.com/duncan3dc/github/issues)[1 PRs](https://github.com/duncan3dc/github/pulls)Apache-2.0PHPPHP ^8.0CI failing

Since Jul 15Pushed 2w ago1 watchersCompare

[ Source](https://github.com/duncan3dc/github)[ Packagist](https://packagist.org/packages/duncan3dc/github)[ Docs](https://github.com/duncan3dc/github)[ RSS](/packages/duncan3dc-github/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (14)Versions (15)Used By (0)

github
======

[](#github)

A PHP library to interact with the GitHub API

Full documentation is available at
PHPDoc API documentation is also available at [http://duncan3dc.github.io/github/api/](http://duncan3dc.github.io/github/api/namespaces/duncan3dc.GitHub.html)

[![release](https://camo.githubusercontent.com/388aa0025ee1cbc097a2ec914b52ff90f9c365c2092e052571c74115d86f7853/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f6769746875622f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/github)[![build](https://github.com/duncan3dc/github/workflows/.github/workflows/buildcheck.yml/badge.svg?branch=main)](https://github.com/duncan3dc/github/actions/workflows/buildcheck.yml)[![coverage](https://camo.githubusercontent.com/f7138c132704bb2116d54d09a975adeb631f3f1b8e26d23ff74156f8728c0c77/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f6769746875622f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/github)

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

[](#installation)

The recommended method of installing this library is via [Composer](https://getcomposer.org/).

Run the following command from your project root:

```
$ composer require duncan3dc/github
```

Getting Started
---------------

[](#getting-started)

```
use duncan3dc\GitHub\Api;

require __DIR__ . "/vendor/autoload.php";

# Connect to a GitHub app using the private key
$api = new Api(1014, file_get_contents("/var/safe/github.pem"));

# List all the organizations this app is installed under
foreach ($app->getOrganizations() as $organization) {
    echo $organization->getName() . "\n";
}

# Get a specific organization/user
$organization = $app->getOrganization("duncan3dc");
```

*Read more at *

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](//github.com/duncan3dc/github/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance67

Regular maintenance activity

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

11

Last Release

414d ago

PHP version history (4 changes)0.1.0PHP ^7.1

0.3.0PHP ^7.2

0.7.0PHP ^7.2 || ^8.0

0.9.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (64 commits)")

---

Tags

apigithub

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M148](/packages/algolia-algoliasearch-client-php)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M719](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M534](/packages/shopware-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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