PHPackages                             d-te/laravel-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. [API Development](/categories/api)
4. /
5. d-te/laravel-disqus

ActiveLibrary[API Development](/categories/api)

d-te/laravel-disqus
===================

Disqus integration for Laravel

1453PHP

Since Jan 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/d-te/laravel-disqus)[ Packagist](https://packagist.org/packages/d-te/laravel-disqus)[ RSS](/packages/d-te-laravel-disqus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-disqus
==============

[](#laravel-disqus)

Disqus comments for laravel 4

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

[](#installation)

Add the package in your composer.json file and run `composer update`.

```
{
    "require": {
        "d-te/laravel-discus": "dev-master"
    }
}
```

### Registering the Package

[](#registering-the-package)

Register the service provider within the `providers` array found in `app/config/app.php`:

```
'providers' => array(
	// ...

	'Dte\Disqus\DisqusServiceProvider'
)
```

Add an alias within the `aliases` array found in `app/config/app.php`:

```
'aliases' => array(
	// ...

	'Disqus' => 'Dte\Disqus\Facades\Disqus',
)
```

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

[](#configuration)

Create configuration file for package using artisan command

```
$ php artisan config:publish d-te/laravel-disqus

```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Add 'disqus\_shortname' to `app/config/packages/d-te/laravel-disqus/config.php`.

You can find your disqus shortname afer signing up and visiting

In your template add :

```
  {{ \Disqus::comments() }}
```

### Additional disqus configuration variables

[](#additional-disqus-configuration-variables)

There are some [disqus configuration variables](https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables):

- disqus\_identifier
- disqus\_title
- disqus\_url
- disqus\_category\_id

Example of usage:

```
 {{ \Disqus::comments(
     array(
       'disqus_identifier' => '/december-2010/the-best-day-of-my-life/',
       'disqus_title' => 'Some title',
       'disqus_url' => 'http://example.com/helloworld.html',
       'disqus_category_id' => 123456
   ) ) }}
```

### Multi-lingual support

[](#multi-lingual-support)

There are two ways how to change disqus locales:

1. To switch on auto selecting disqus language based on Laravel app locale:

in `app/config/packages/d-te/laravel-disqus/config.php` set

```
  'auto_set_language' => true,
```

2. Set locale manually in template:

```
  {{ \Disqus::comments(array('language' => 'de')) }}
```

Sometimes discus locale could not corresponde to your app locale. To convert your app locale to discus locale just add supported locales to config `app/config/packages/d-te/laravel-disqus/config.php` example:

```
	  'discus_languages' => array(
	 			'ua' => 'uk',
	 			'fr' => 'fr_CA',
	 		)
```

- [List of supported disqus locales](https://www.transifex.com/languages/)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b93a350a59d8a9b95a75b88480c52d3278539fea7af18f0b6fd359033a6b6404?d=identicon)[d-te](/maintainers/d-te)

---

Top Contributors

[![d-te](https://avatars.githubusercontent.com/u/3748013?v=4)](https://github.com/d-te "d-te (8 commits)")

### Embed Badge

![Health badge](/badges/d-te-laravel-disqus/health.svg)

```
[![Health](https://phpackages.com/badges/d-te-laravel-disqus/health.svg)](https://phpackages.com/packages/d-te-laravel-disqus)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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