PHPackages                             davahome/self-update - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. davahome/self-update

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davahome/self-update
====================

Simple self update library using github api

1.2(5y ago)22.2kGPL-3.0-or-laterPHPPHP &gt;=5.4

Since Oct 15Pushed 5y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

self-update
===========

[](#self-update)

Provides functionality for implementing a github api based self-update functionality (for private repositories)

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

[](#installation)

```
php composer.phar require davahome/self-update
```

Usage
=====

[](#usage)

```
use DavaHome\SelfUpdate\AssetFileDownloader;

$assetFileDownloader = new AssetFileDownloader('davahome', 'self-update', '');

// 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

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

1868d ago

### 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 (9 commits)")

---

Tags

composergithubpharphpupdate

### Embed Badge

![Health badge](/badges/davahome-self-update/health.svg)

```
[![Health](https://phpackages.com/badges/davahome-self-update/health.svg)](https://phpackages.com/packages/davahome-self-update)
```

###  Alternatives

[bestnetwork/telnet

Telnet client in php

2428.6k](/packages/bestnetwork-telnet)[bigecko/laravel-theme

Simple theme manager for Laravel 4.

336.9k](/packages/bigecko-laravel-theme)

PHPackages © 2026

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