Download the PHP package webbuilders-group/silverstripe-packagistshortcode without Composer
On this page you can find all versions of the php package webbuilders-group/silverstripe-packagistshortcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webbuilders-group/silverstripe-packagistshortcode
More information about webbuilders-group/silverstripe-packagistshortcode
Files in webbuilders-group/silverstripe-packagistshortcode
Package silverstripe-packagistshortcode
Short Description Add a short code for adding a Packagist installs button with a count to a HTMLText field.
License BSD-3-Clause
Informations about the package silverstripe-packagistshortcode
Packagist Short Code
Add a short code for adding a Packagist installs button with a count to a HTMLText field.
Maintainer Contact
- Ed Chipman (UndefinedOffset)
Requirements
- SilverStripe CMS 4.x | 5.x
Installation
Composer (recommended):
If you prefer you may also install manually:
- Download the module from here https://github.com/webbuilders-group/silverstripe-packagistshortcode/archive/master.zip
- 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 is pretty straight forward to add a packagist downloads button you simply add the following:
Optionally you may add mode="monthly" or button="daily" (defaults to total) to show the download count for the given period.
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):
Configuration Options
There are a few configuration options available to you: