kcdev/disqus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kcdev/disqus

Composer 安装命令:

composer require kcdev/disqus

包简介

Laravel - Disqus Integration | Integrating your application with Disqus platform.

README 文档

README

Latest Stable Version Total Downloads License

Integrating your application with Disqus platform.

Installation

Via composer

composer require kcdev/disqus

Setup

In app/config/app.php add the following :

  • The ServiceProvider to the providers array :
Kcdev\Disqus\DisqusServiceProvider::class,
  • The class alias to the aliases array :
'Disqus' => Kcdev\Disqus\Facades\Disqus::class,
  • Publish the config file
php artisan vendor:publish --provider="Kcdev\Disqus\DisqusServiceProvider"

Configuration

Add DISQUS_USERNAME in .env file :

DISQUS_USERNAME=your_disqus_user_name

(You can obtain them from here)

Usage

Display disqus form :

{!! Disqus::display() !!}

With custom config (page.url and page.identifier) :

{!! Disqus::display(['data-url' => 'http://some.url/request', 'data-identifier' => 'your.identifier.id']) !!}

Without Laravel

Checkout example below:

<?php

require_once "vendor/autoload.php";

$username  = 'your_disqus_username';
$disqus = new \Kcdev\Disqus\Disqus($username);

?>
<body>
    <?php echo $disqus->display(); ?>
</body>

Security Vulnerabilities

If you discover a security vulnerability within our library, please send an e-mail to Amiruddin Marmul via amiruddinmarmul@gmail.com. All security vulnerabilities will be promptly addressed.

License

Lavavel - Disqus Integration is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固