PHPackages                             silverstripesk/silverstripe-disqus - 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. silverstripesk/silverstripe-disqus

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

silverstripesk/silverstripe-disqus
==================================

Disqus module for SilverStripe CMS http://silverstripe.sk/clanky/disqus/

171.0k7[1 issues](https://github.com/silverstripesk/silverstripe-disqus/issues)[1 PRs](https://github.com/silverstripesk/silverstripe-disqus/pulls)PHPCI failing

Since Oct 18Pushed 7y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Installation &amp; setup:
-------------------------

[](#installation--setup)

### Download source code:

[](#download-source-code)

```
cd /path/to/your/silverstrie/installation/
git clone git://github.com/silverstripesk/silverstripe-disqus.git disqus

```

### Or install with composer:

[](#or-install-with-composer)

```
composer require "silverstripesk/silverstripe-disqus:*"

```

### Activate in your config and Build

[](#activate-in-your-config-and-build)

create mysite/\_config/comments.yml and activate for your commentable class (or Page for all pagetypes)

```
---
Name: mysite-comments
---
BlogPost:
  extensions:
    - DisqusExtension

```

Build your ss installation - in browser visit following url:

```
http://your-ss-installation/dev/build
```

### Setup in SiteConfig area

[](#setup-in-siteconfig-area)

In backend visit SiteConfig area, tab Disqus, place required data:

- disqus shortname (from your disqus account)
- disqus secret key (from your disqus account)
- disqus prefix (place there anything you want. Store diferent prefix for local and production, so thread identifier will be different and your local testing comments will not be shown on production.) By default, identifier looks like this: prefix\_pageID. You can customize this for each Page (Behaviour tab, right above Comments checkbox) so you can show same comments on multiple pages (alternatively, create different forum for local copy of your site)...
- Disqus sync time -&gt; comments can be synced with disqus server for SS usage (e.g. generate comments for non javascript usage, search, latest comments listing...). Place time in seconds (3600 for 1 hour)
- By default, time syncing works as standard php process within visitor's page load (so if there are some difficulties with disqus server connection, page load can be limited). You can enable background syncing, so syncing is independent from visitor's page load. Its alpha feature, tested only on linux!

### Activate in your theme

[](#activate-in-your-theme)

Replace

```
$PageComments

```

with following code

```
$DisqusPageComments

```

if you are on some Page holder (list of pages), you can show comments count by adding:

```
$disqusCountLink

```

Usage
-----

[](#usage)

### If default comments module installed:

[](#if-default-comments-module-installed)

Check SS default **Enable Page Comments** Checkbox (located in Settings tab) to enable disqus comments

### Else

[](#else)

Comments will be shown on all pagetypes activated in comments.yml

Collaboration
-------------

[](#collaboration)

If you want to help out and make some improvements please fork this project and submit a pull request (see this guide on how to do this: [Pull requests](http://help.github.com/pull-requests/)).

TODO
----

[](#todo)

If silverstripe/comments module installed: sync both to have same comments on both sides

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/85b58217e853d9e5408000bf58374b254fc79c5d1a445c49000ed9f06c248ad3?d=identicon)[silverstripesk](/maintainers/silverstripesk)

![](https://www.gravatar.com/avatar/654baad673a55de1a9e9ae14eb209ffc51a061befa657d38e88e613acf4443c0?d=identicon)[christopherdarling](/maintainers/christopherdarling)

---

Top Contributors

[![silverstripesk](https://avatars.githubusercontent.com/u/644242?v=4)](https://github.com/silverstripesk "silverstripesk (14 commits)")[![camfindlay](https://avatars.githubusercontent.com/u/367847?v=4)](https://github.com/camfindlay "camfindlay (6 commits)")[![christopherdarling](https://avatars.githubusercontent.com/u/178039?v=4)](https://github.com/christopherdarling "christopherdarling (4 commits)")

### Embed Badge

![Health badge](/badges/silverstripesk-silverstripe-disqus/health.svg)

```
[![Health](https://phpackages.com/badges/silverstripesk-silverstripe-disqus/health.svg)](https://phpackages.com/packages/silverstripesk-silverstripe-disqus)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[orchestra/sidekick

Packages Toolkit Utilities and Helpers for Laravel

1214.3M14](/packages/orchestra-sidekick)

PHPackages © 2026

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