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

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

fortecdev/trending-github
=========================

Simple package to get trending repositories on Github.

1.0.0(8y ago)9121MITPHP

Since Dec 19Pushed 7y agoCompare

[ Source](https://github.com/olucode/trending-github)[ Packagist](https://packagist.org/packages/fortecdev/trending-github)[ RSS](/packages/fortecdev-trending-github/feed)WikiDiscussions master Synced 5d ago

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

trending-github
===============

[](#trending-github)

This package is a PHP port of [this module](https://github.com/ecrmnn/trending-github)

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

[](#installation)

```
composer require fortecdev/trending-github
```

Usage
-----

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';

use Fortec\GithubTrending;

$github = new GithubTrending();

$data = $github->getTrending();

var_dump($data);
/*
[
    [
        'author' => 'facebook',
        'name' => 'react',
        'url' => 'https://github.com/facebook/react',
        'description' => 'A declarative, efficient, and flexible JavaScript library for building user interfaces.',
        'language' => 'JavaScript',
        'stars' => '83,511',
        'forks' => '15,791',
        'starsToday' => '25 stars today'
    ],
    ...
]
*/
```

You can also add time period and language filters.

```
require_once __DIR__ . '/vendor/autoload.php';

use Fortec\GithubTrending;

$github = new GithubTrending("weekly","php");

$data = $github->getTrending();

var_dump($data);
/*
[
    [
        'author' => 'laravel',
        'name' => 'laravel',
        'url' => 'https://github.com/laravel/laravel',
        'description' => 'A PHP Framework For Web Artisans',
        'language' => 'JavaScript',
        'stars' => '36,921',
        'forks' => '12,145',
        'starsToday' => '200 stars this week'
    ],
    ...
]
*/
```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2017 Olumide Falomo

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3071d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d9a90c7afd29556b4d3535aafa882e0918de610bbed8d1cdd69d63b34935374?d=identicon)[olucode](/maintainers/olucode)

---

Top Contributors

[![olucode](https://avatars.githubusercontent.com/u/24525097?v=4)](https://github.com/olucode "olucode (7 commits)")

---

Tags

githubgithub-apitrending-repositoriesgithubtrending

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[jwage/changelog-generator

Generate a markdown changelog document from a GitHub milestone.

10372.7k](/packages/jwage-changelog-generator)[producer/producer

Tools for releasing library packages; supports Git, Mercurial, Github, Gitlab, and Bitbucket.

10418.7k2](/packages/producer-producer)[enomotodev/php-cs-fixer-commit

Create commit of php-cs-fixer

18117.3k](/packages/enomotodev-php-cs-fixer-commit)[povils/figlet

Figlet text generator - PHP

616.8k4](/packages/povils-figlet)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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