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

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

metrixio/github-public
======================

This tool helps developers see how popular their code is and how it's being used. It works with Prometheus and Grafana to gather data from Github and create cool visualizations. You can use Grafana to filter and customize the metrics you collect. We hope you find it helpful!

1.0.0(3y ago)071MITPHPPHP &gt;=8.1

Since Dec 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/metrixio/github-public)[ Packagist](https://packagist.org/packages/metrixio/github-public)[ Docs](https://github.com/metrixio/github-public)[ RSS](/packages/metrixio-github-public/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Github public metrics collector
===============================

[](#github-public-metrics-collector)

[![](https://camo.githubusercontent.com/c90d27cafed53c3c375cfd97c0310f6f5f1504c3996d54d8aa2ceda9e300788d/68747470733a2f2f706f7365722e707567782e6f72672f6d6574726978696f2f6769746875622d7075626c69632f726571756972652f706870)](https://packagist.org/packages/metrixio/github-public)[![](https://camo.githubusercontent.com/1bf9f69068f834419b6e8d0f5414a97e735960f721719336b9effe084fc1f8c2/68747470733a2f2f706f7365722e707567782e6f72672f6d6574726978696f2f6769746875622d7075626c69632f76657273696f6e)](https://packagist.org/packages/metrixio/github-public)[![](https://github.com/metrixio/twitter/github-public/workflows/docker-image.yml/badge.svg)](https://github.com/metrixio/github-public/actions)[![](https://camo.githubusercontent.com/8b7eaf31c8ba788f463b753423bf2bbd0df8d72cb4c416c7368efb1511944891/68747470733a2f2f706f7365722e707567782e6f72672f6d6574726978696f2f6769746875622d7075626c69632f646f776e6c6f616473)](https://packagist.org/packages/metrixio/github-public)

[![github](https://user-images.githubusercontent.com/773481/209463759-1a359047-3263-454b-b8ae-3444b5102bc8.png)](https://user-images.githubusercontent.com/773481/209463759-1a359047-3263-454b-b8ae-3444b5102bc8.png)

This tool helps developers see how popular their code is and how it's being used.

It works with Prometheus and Grafana to collect data from Github, store it in Prometheus, and create visualizations with Grafana. You can use Grafana to customize the data you collect and create dashboards that fit your needs.

Dashboard
---------

[](#dashboard)

[![image](https://user-images.githubusercontent.com/773481/209463810-43f33164-0be3-42f2-97e8-7c6b6d0a226c.png)](https://user-images.githubusercontent.com/773481/209463810-43f33164-0be3-42f2-97e8-7c6b6d0a226c.png)

Usage
-----

[](#usage)

To get started with this package, you'll need to create a Github API token. Once you have that, you can start collecting metrics data.

```
# Gitgub API token
GITHUB_TOKEN=

# Github repositories to follow (comma separated)
GITHUB_REPOSITORIES=
```

### Docker

[](#docker)

```
version: "3.7"

services:
    twitter-metrics:
        image: ghcr.io/metrixio/github-public:latest
        environment:
            GITHUB_TOKEN: ...
            GITHUB_REPOSITORIES: ...
        restart: on-failure

    prometheus:
        image: prom/prometheus
        volumes:
            - ./runtime/prometheus:/prometheus
        restart: always

    grafana:
        image: grafana/grafana
        depends_on:
            - prometheus
        ports:
            - 3000:3000
        volumes:
            - ./runtime/grafana:/var/lib/grafana
        restart: always
```

### Local server

[](#local-server)

```
composer create-project metrixio/github-public
```

Define the repositories you want to track in `.env` file

```
# Gitgub API token
GITHUB_TOKEN=xxx

# Github repositories to follow (comma separated)
GITHUB_REPOSITORIES=spiral/framework,...
```

Once the project is installed and configured you can start application server:

```
./rr serve
```

Metrics will be available on .

> **Note**: To fix unable to open metrics page, change metrics address in RoadRunner config file to `127.0.0.1:2112`.

---

The package is built with some of the best tools out there for PHP. It's powered by [Spiral Framework](https://github.com/spiral/framework/), which makes it super fast and efficient, and it uses [RoadRunner](https://github.com/roadrunner-server/roadrunner) as the server, which is a really great tool for collecting metrics data for Prometheus.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1237d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/773481?v=4)[Pavel Buchnev](/maintainers/butschster)[@butschster](https://github.com/butschster)

---

Top Contributors

[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (14 commits)")

---

Tags

docker-imagegithubgrafana-dashboardmetrics-collectorphp81prometheus-metricsroadrunnerspiral-framework

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

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