PHPackages                             aureka/disqus-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. aureka/disqus-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

aureka/disqus-bundle
====================

Provides a few Twig filters to integrate Symfony with Disqus

0.0.2(12y ago)1842[1 PRs](https://github.com/aureka/AurekaDisqusBundle/pulls)Apache2PHP

Since Apr 24Pushed 8y ago6 watchersCompare

[ Source](https://github.com/aureka/AurekaDisqusBundle)[ Packagist](https://packagist.org/packages/aureka/disqus-bundle)[ RSS](/packages/aureka-disqus-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

AurekaDisqusBundle
==================

[](#aurekadisqusbundle)

[![Build Status](https://camo.githubusercontent.com/fc1d3893a05c78a925732a7482cdf04702c81145a7150ca005ab6931366a8c1b/68747470733a2f2f7472617669732d63692e6f72672f617572656b612f417572656b6144697371757342756e646c652e706e67)](https://travis-ci.org/aureka/AurekaDisqusBundle)

Provides Twig funtions to facilitate the integration of your Symfony site with Disqus. It also enables the Disqus **Single Sign-On**.

#### Functions

[](#functions)

- `disqus(blogpost)`: Append the JavaScript for the disqus thread.
- `disqus_count()`: Appends the JavaScript for the comment count.

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

[](#installation)

Add the following line to your `composer.json`:

```
{
    "require": {
        "aureka/disqus-bundle" : "dev-master"
    }
}
```

Execute `composer update`.

Add the following line to your `AppKernel.php`.

```
public function registerBundles()
{
    $bundles = array(
        // your other bundles
        new Aureka\DisqusBundle\AurekaDisqusBundle(),
    );
}
```

Configuration
-------------

[](#configuration)

Add the following lines to your `config.yml`:

```
aureka_disqus:
    short_name: 'your_shortname' # used to identify the site in disqus

```

Basic usage
-----------

[](#basic-usage)

Make the class an implementation of the interface `Disqusable`:

```
# src/Acme/DemoBundle/Entity/BlogPost.php

namespace Acme\DemoBundle\Entity;

use Aureka\DisqusBundle\Model\Disqusable;

class BlogPost implements Disqusable
{

    // ... your other methods

    public function getDisqusId()
    {
        return $this->disqusId; // generate it on the fly or make it persisted.
    }
}
```

Use the twig filter in your template.

```
{# src/Acme/DemoBundle/Resources/views/BlogPost/show.html.twig #}

{# renders the thread and comment form #}
{{ disqus(blogpost) }}

{# adds the count for any disqus link #}
{{ disqus_count() }}
```

Single Sign-On
--------------

[](#single-sign-on)

Disqus brings a Single Sign-On feature that lets your application authenticate its users in Disqus.

In order to do that you need to activate the add-on in your Disqus account, create an app for your website and add the following settings to `config.yml`:

```
aureka_disqus:
    short_name: 'your_shortname' # used to identify the site in disqus
    sso:
        enabled: true
        api_key: 'enter_your_api_key_here'
        private_key: 'enter_the application_private_key_here'

```

Now go to your `User` class and make it an implementation of `DisqusUser`:

```
# src/Acme/DemoBundle/Entity/User.php

namespace Acme\DemoBundle\Entity;

use Areka\DisqusBundle\Model\DisqusUser;

class User implements DisqusUser
{
    public function getDisqusId()
    {
        return $this->id; // Or a custom generated id
    }
}
```

For further information, please visit the [official documentation](http://help.disqus.com/customer/portal/articles/236206-integrating-single-sign-on).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

4398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2a85fbd3df7cb8270d08d62ca42ba012b02cad5ff2a146dcc544ca658f92689?d=identicon)[carlescliment](/maintainers/carlescliment)

---

Top Contributors

[![carlescliment](https://avatars.githubusercontent.com/u/1255401?v=4)](https://github.com/carlescliment "carlescliment (39 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aureka-disqus-bundle/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[endroid/qr-code-bundle

Endroid QR Code Bundle

32110.6M17](/packages/endroid-qr-code-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

1432.0k](/packages/symfony-ux-toolkit)

PHPackages © 2026

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