PHPackages                             davahome/github-php-api - 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. davahome/github-php-api

Abandoned → [davahome/github-client](/?search=davahome%2Fgithub-client)Library

davahome/github-php-api
=======================

06PHP

Since Jan 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DavaHome/github-client)[ Packagist](https://packagist.org/packages/davahome/github-php-api)[ RSS](/packages/davahome-github-php-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

github-php-api
==============

[](#github-php-api)

Provides functionality for communication with the github using php.

A possible usage of this is the implementation a github api based self-update functionality (for private repositories)

Installation
============

[](#installation)

```
php composer.phar require davahome/github-php-api
```

Usage
=====

[](#usage)

```
use DavaHome\GithubApi\AssetFileDownloader;

$assetFileDownloader = new AssetFileDownloader('davahome', 'github-api', '');

// Display some release information (optional)
$releaseInformation = $assetFileDownloader->getReleaseInformation();
$date = new \DateTime($releaseInformation['published_at']);
echo 'Version: ', $releaseInformation['tag_name'], PHP_EOL;
echo 'Published: ', $date->format('Y-m-d H:i:s'), PHP_EOL;

// Download the asset
$fileContent = $assetFileDownloader->downloadAsset('file.phar');
file_put_contents('file.phar', $fileContent);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![thedava](https://avatars.githubusercontent.com/u/7238710?v=4)](https://github.com/thedava "thedava (11 commits)")

---

Tags

clientgithubphp

### Embed Badge

![Health badge](/badges/davahome-github-php-api/health.svg)

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

PHPackages © 2026

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