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

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

webbuilders-group/silverstripe-packagistshortcode
=================================================

Add a short code for adding a Packagist installs button with a count to a HTMLText field.

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

Since Dec 18Pushed 10mo ago3 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (9)Used By (0)

Packagist Short Code
====================

[](#packagist-short-code)

Add a short code for adding a Packagist installs button with a count to a HTMLText field.

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

[](#maintainer-contact)

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

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

[](#requirements)

- SilverStripe CMS ^4|^5|^6

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

[](#installation)

**Composer (recommended):**

```
composer require webbuilders-group/silverstripe-packagistshortcode

```

If you prefer you may also install manually:

- Download the module from here
- Extract the downloaded archive into your site root so that the destination folder is called githubshortcode, opening the extracted folder should contain \_config.php in the root along with other files/folders
- Run dev/build?flush=all to regenerate the manifest

Usage
-----

[](#usage)

Usage is pretty straight forward to add a packagist downloads button you simply add the following:

```
[packagist package="package owner/package name"]

```

Optionally you may add mode="monthly" or button="daily" (defaults to total) to show the download count for the given period.

```
[packagist package="package owner/package name" mode="monthly"]

```

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):

```
[packagist,package="package owner/package name",mode="monthly"]

```

#### Configuration Options

[](#configuration-options)

There are a few configuration options available to you:

```
SilverStripe\Core\Injector\Injector:
    Psr\SimpleCache\CacheInterface.PackagistShortCode:
        factory: SilverStripe\Core\Cache\CacheFactory
        constructor:
            namespace: "NewRelic"
            defaultLifetime: 86400 #Cache time in seconds
WebbuildersGroup\PackagistShortCode\PackagistShortCode:
    UseShortHandNumbers: true #Use short hand numbers i.e 5.6K or not
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance52

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% 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 ~586 days

Total

8

Last Release

331d ago

Major Versions

0.1 → 1.0.02016-03-23

1.0.x-dev → 2.0.02019-01-18

### 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 (6 commits)")[![RobertLeCreux](https://avatars.githubusercontent.com/u/25985906?v=4)](https://github.com/RobertLeCreux "RobertLeCreux (4 commits)")[![aaronmacpherson](https://avatars.githubusercontent.com/u/20426496?v=4)](https://github.com/aaronmacpherson "aaronmacpherson (1 commits)")

---

Tags

silverstripeshortcodepackagist

### Embed Badge

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

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

###  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)
