PHPackages                             webbuilders-group/silverstripe-githubshortcode - 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. webbuilders-group/silverstripe-githubshortcode

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

webbuilders-group/silverstripe-githubshortcode
==============================================

Add a short code for adding GitHub Star and Fork buttons with counts to a HTMLText field.

2.1.0(11mo ago)1601[1 PRs](https://github.com/webbuilders-group/silverstripe-githubshortcode/pulls)BSD-3-ClausePHP

Since Dec 18Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/webbuilders-group/silverstripe-githubshortcode)[ Packagist](https://packagist.org/packages/webbuilders-group/silverstripe-githubshortcode)[ RSS](/packages/webbuilders-group-silverstripe-githubshortcode/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

GitHub Short Code
=================

[](#github-short-code)

Add a short code for adding GitHub Star and Fork buttons with counts to a HTMLText field.

Maintainer Contact
------------------

[](#maintainer-contact)

- Ed Chipman ([UndefinedOffset](https://github.com/UndefinedOffset))

Requirements
------------

[](#requirements)

- SilverStripe CMS ^4|^5|^6

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

[](#installation)

- Run composer require webbuilders-group/silverstripe-githubshortcode dev-master in the project folder
- Run dev/build?flush=all to regenerate the manifest

Usage
-----

[](#usage)

Usage is pretty straight forward to add GitHub buttons you simply add the following:

```
[github repo="repository owner/repository name"]

```

Optionally you may add layout="stacked" to use a stacked layout (defaults to inline). As well you may also optionally add button="stars" or button="forks" (defaults to both) to only show the star gazers or forks of the repository.

```
[github repo="repository owner/repository name" layout="stacked"]

[github repo="repository owner/repository name" layout="stacked" button="stars"]

```

In 3.1 the short codes above will work as included however the updated syntax for the short code would be (of course layout and button are not required):

```
[github,repo="repository owner/repository name",layout="stacked",button="stars"]

```

#### Configuration Options

[](#configuration-options)

There are a few configuration options available to you:

```
WebbuildersGroup\GitHubShortCode\GitHubShortCode:
    CacheTime: 86400 #Cache time in seconds (default is 1 day, remember the GitHub api is rate limited)
    UseBasicAuth: false #Use GitHub authentication or not
    Username: "your username" #GitHub Username, required if using authentication
    Password: "your password" #GitHub Password, required if using authentication
    UseShortHandNumbers: true #Use short hand numbers i.e 5.6K or not
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance52

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~600 days

Recently: every ~843 days

Total

8

Last Release

331d ago

Major Versions

0.1.1 → 1.0.02016-03-23

1.0.x-dev → 2.0.02017-11-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/4339255555acb728d7708895663e2a047a73c09f4394aa25bf038817e2d25d44?d=identicon)[WebbuildersGroup](/maintainers/WebbuildersGroup)

---

Top Contributors

[![UndefinedOffset](https://avatars.githubusercontent.com/u/1391558?v=4)](https://github.com/UndefinedOffset "UndefinedOffset (7 commits)")[![DoggersHusky](https://avatars.githubusercontent.com/u/8750719?v=4)](https://github.com/DoggersHusky "DoggersHusky (4 commits)")[![aaronmacpherson](https://avatars.githubusercontent.com/u/20426496?v=4)](https://github.com/aaronmacpherson "aaronmacpherson (2 commits)")

---

Tags

silverstripegithubshortcode

### Embed Badge

![Health badge](/badges/webbuilders-group-silverstripe-githubshortcode/health.svg)

```
[![Health](https://phpackages.com/badges/webbuilders-group-silverstripe-githubshortcode/health.svg)](https://phpackages.com/packages/webbuilders-group-silverstripe-githubshortcode)
```

###  Alternatives

[sheadawson/silverstripe-shortcodable

Provides a GUI for CMS users to insert Shortcodes into the HTMLEditorField + an API for developers to define Shortcodable DataObjects and Views

5018.1k5](/packages/sheadawson-silverstripe-shortcodable)[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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