PHPackages                             jeromedia/laravel-github-service - 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. jeromedia/laravel-github-service

ActiveLibrary[API Development](/categories/api)

jeromedia/laravel-github-service
================================

A service for interacting with GitHub repositories and comparing versions.

v1.2.2(12mo ago)023MITPHPPHP ^8.0

Since Mar 27Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/Jeromedia/JM-Laravel-Github-Version-Package)[ Packagist](https://packagist.org/packages/jeromedia/laravel-github-service)[ Docs](https://github.com/jeromedia/laravel-github-service)[ RSS](/packages/jeromedia-laravel-github-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (18)Used By (0)

**Laravel GitHub Service**
==========================

[](#laravel-github-service)

*A Laravel package to fetch and compare GitHub repository versions.*

**Description**
---------------

[](#description)

This package provides a simple way to:

- Get the current version of a Laravel web application (from Git tags).
- Fetch the latest release tag from a GitHub repository.
- Compare the two versions to check for updates.

---

**Installation**
----------------

[](#installation)

### **1. Install the package using Composer**

[](#1-install-the-package-using-composer)

```
composer require jeromedia/laravel-github-service
```

### **2. Publish the configuration - Important**

[](#2-publish-the-configuration---important)

```
php artisan vendor:publish --provider="Jeromedia\LaravelGithubService\GithubServiceProvider" --tag=config
```

### **3. The Github Full APi link for fetching the latest release**

[](#3-the-github-full-api-link-for-fetching-the-latest-release)

```
https://api.github.com/repos/{OWNER}/{REPO}/releases/latest
```

### **4. Add to your .env file**

[](#4-add-to-your-env-file)

```
#Github Connect
GITHUB_API_REPO=""
GITHUB_API_OWNER=""
GITHUB_API_VERSION="2022-11-28"
GITHUB_API_URL="https://api.github.com/repos"
GITHUB_API_TOKEN=""
GITHUB_API_CACHE_TTL=3600
```

---

**GitHub Api Token**
--------------------

[](#github-api-token)

### **1. Get a gitHub Fine-Grained Token**

[](#1-get-a-github-fine-grained-token)

### **2. Repository access**

[](#2-repository-access)

Select only for the repository you want to get the tag version

### **3. Repository permissions**

[](#3-repository-permissions)

Select ONLY "Contents", Metadata will automatically selected

**Usage**
---------

[](#usage)

### **1. Add the following code to your footer**

[](#1-add-the-following-code-to-your-footer)

```

```

Somewhere in your footer

```

```

### **2. Add the route to your api routes file or publish the route**

[](#2-add-the-route-to-your-api-routes-file-or-publish-the-route)

```
Route::get('/github', GithubController::class)->name('github.api');
```

### **3. Or publish the route**

[](#3-or-publish-the-route)

```
php artisan vendor:publish --provider="Jeromedia\LaravelGithubService\GithubServiceProvider" --tag=routes
```

### **4. Clear the GitHub version cache**

[](#4-clear-the-github-version-cache)

```
php artisan github-service:clear-cache
```

---

**Development &amp; Contributions**
-----------------------------------

[](#development--contributions)

- **Author:** \[Jerome / Jeromedia Team\]
- **Website:** \[jeromedia.com\]
- **Contact:** \[\]
- **License:** Private (Internal Use)

---

**Notes**
---------

[](#notes)

- This package requires a **GitHub personal access token** to fetch repository data.
- Works best with Laravel 9+ and PHP 8+.

---

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Recently: every ~14 days

Total

17

Last Release

361d ago

Major Versions

v0.0.10 → v1.02025-03-27

### Community

Maintainers

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

---

Top Contributors

[![Jeromedia](https://avatars.githubusercontent.com/u/48228175?v=4)](https://github.com/Jeromedia "Jeromedia (40 commits)")

---

Tags

jeromedialaravel-github-service

### Embed Badge

![Health badge](/badges/jeromedia-laravel-github-service/health.svg)

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

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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