PHPackages                             rzilvinas/laravel-disqus-sso - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rzilvinas/laravel-disqus-sso

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rzilvinas/laravel-disqus-sso
============================

Generates payload to use with Disqus SSO

2.0.0(9y ago)111MITPHPPHP &gt;=5.4.0

Since Dec 12Pushed 4y agoCompare

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

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

[![Build Status](https://camo.githubusercontent.com/b5b29b3a2a81436c5e356e340eb9a6ce0701bb74c902df26c963be4f576a3987/68747470733a2f2f7472617669732d63692e6f72672f6767676f72646f6e2f6c61726176656c2d6469737175732d73736f2e737667)](https://travis-ci.org/gggordon/laravel-disqus-sso)

Laravel Disqus SSO
==================

[](#laravel-disqus-sso)

A simple Laravel packages used to generate payload for the Disqus SSO feature.

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

[](#installation)

- Install the package via composer:

`composer require igonics/laravel-disqus-sso`

- Add the service provider to `app/config/app.php`:

`'IGonics\Disqus\DisqusServiceProvider',`

- Add the alias to `app/config/app.php`:

`'DisqusSSO'       => 'IGonics\Disqus\Facades\DisqusSSO',`

- Publish the configuration file:

`php artisan vendor:publish --provider="IGonics\Disqus\DisqusServiceProvider" --tag="config"`

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

[](#configuration)

Open `config/disqus-sso.php` and fill in your Disqus *secret* and *public* API keys. You can find those at your [Disqus applications](https://disqus.com/api/applications/) page.

Usage
-----

[](#usage)

Using this package is very easy. Add the following JavaScript code **before** the Disqus initialisation:

#### JavaScript using Blade Syntax

[](#javascript-using-blade-syntax)

```
var disqus_config = function () {
    // The generated payload which authenticates users with Disqus
    this.page.remote_auth_s3 = '{{ DisqusSSO::payload(Auth::user()) }}';
    this.page.api_key = '{{ DisqusSSO::publicKey() }}';
}

```

#### JavaScript using vanilla PHP

[](#javascript-using-vanilla-php)

```
var disqus_config = function () {
    // The generated payload which authenticates users with Disqus
    this.page.remote_auth_s3 = '';
    this.page.api_key = '';
}

```

The payload function accepts two different types of input:
a) An array with the `id`, `username`, `email`, `avatar` and `url` of the user you're trying to authenticate. See the [Disqus help](https://help.disqus.com/customer/portal/articles/236206-single-sign-on#user-data) for more information about these.
b) A laravel Model instance, for example `Auth::user()` as shown in the example.

Maintained By
-------------

[](#maintained-by)

[IGonics](http://igonics.com)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 69.4% 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 ~162 days

Recently: every ~64 days

Total

6

Last Release

3356d ago

Major Versions

1.1.2 → 2.0.02017-03-04

### Community

Maintainers

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

---

Top Contributors

[![gggordon](https://avatars.githubusercontent.com/u/6540335?v=4)](https://github.com/gggordon "gggordon (34 commits)")[![modbase](https://avatars.githubusercontent.com/u/1606383?v=4)](https://github.com/modbase "modbase (14 commits)")[![trollid](https://avatars.githubusercontent.com/u/28324453?v=4)](https://github.com/trollid "trollid (1 commits)")

---

Tags

laravelSSOdisqusigonics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rzilvinas-laravel-disqus-sso/health.svg)

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

###  Alternatives

[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)

PHPackages © 2026

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