PHPackages                             spress/github-metadata-plugin - 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. spress/github-metadata-plugin

ActiveSpress-plugin[Utility &amp; Helpers](/categories/utility)

spress/github-metadata-plugin
=============================

Github metadata of a repository

v2.0.0(10y ago)139MITPHP

Since Nov 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/spress/Github-metadata-plugin)[ Packagist](https://packagist.org/packages/spress/github-metadata-plugin)[ Docs](http://spress.yosymfony.com)[ RSS](/packages/spress-github-metadata-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Github metadata of a repository
-------------------------------

[](#github-metadata-of-a-repository)

[![Spress 2 ready](https://camo.githubusercontent.com/c561b5ab66f0296c37bc409f8a6a49fffb49b600c4341ff8df52ebbc742c40ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e737667)](https://camo.githubusercontent.com/c561b5ab66f0296c37bc409f8a6a49fffb49b600c4341ff8df52ebbc742c40ba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537072657373253230322d72656164792d627269676874677265656e2e737667)

Access to `site.github` for getting a repository's metadata.

**Requires**:

- Spress &gt;=2.0.0
- PHP cURL extension.

If you are using Spress 1.x, go to [1.0.0](https://github.com/spress/Github-metadata-plugin/tree/v1.0.0) version of the plugin.

### How to install?

[](#how-to-install)

Go to your site folder and input the following command:

```
spress add:plugin spress/github-metadata-plugin
```

### How to use?

[](#how-to-use)

Add the following to your `config.yml`:

```
#Your repository name:
repository: "spress/spress"
```

\#### Access to repository's metadada

- **Stargazers count**: `site.github.stargazers_count`.
- **Watchers count**: `site.gihub.watchers_count`.
- **Forks count**: `site.github.forks_count`.

See [Github repos API](https://developer.github.com/v3/repos/).

Another metadata keys:

- name
- full\_name
- description
- fork
- html\_url
- clone\_url
- git\_url
- ssh\_url
- mirror\_url
- homepage
- size
- default\_branch
- open\_issues\_count
- has\_issues
- has\_pages
- has\_downloads
- pushed\_at
- created\_at
- updated\_at

##### Contributors metadata

[](#contributors-metadata)

Access to `site.github.contributors` for getting an array with contributors metadata.

See [Github repos API](https://developer.github.com/v3/repos/#list-contributors).

- login
- avatar\_url
- html\_url
- type
- contributions

##### Owner metada

[](#owner-metada)

Access to `site.github.owner` for getting owner metadata.

- login
- avatar\_url
- gravatar\_id
- html\_url

##### Organization metadata

[](#organization-metadata)

Access to `site.github.organization` for getting organization metadata.

- login
- avatar\_url
- html\_url

##### Source metadata

[](#source-metadata)

Access to `site.github.source` for getting source metadata.

- name
- full\_name
- description
- html\_url
- clone\_url
- git\_url
- ssh\_url
- svn\_url
- mirror\_url
- homepage
- forks\_count
- stargazers\_count
- watchers\_count
- size
- default\_branch
- open\_issues\_count
- has\_issues
- has\_wiki
- has\_pages
- has\_downloads
- pushed\_at
- created\_at
- updated\_at

License
-------

[](#license)

This plugin is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3788d ago

Major Versions

v1.0.0 → v2.0.02016-01-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3321099?v=4)[Yo! Symfony](/maintainers/yosymfony)[@yosymfony](https://github.com/yosymfony)

---

Top Contributors

[![yosymfony](https://avatars.githubusercontent.com/u/3321099?v=4)](https://github.com/yosymfony "yosymfony (16 commits)")

---

Tags

githubphppluginspresspluginmetadatagithubspress

### Embed Badge

![Health badge](/badges/spress-github-metadata-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/spress-github-metadata-plugin/health.svg)](https://phpackages.com/packages/spress-github-metadata-plugin)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)

PHPackages © 2026

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