PHP code example of kcdev / disqus

1. Go to this page and download the library: Download kcdev/disqus library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kcdev / disqus example snippets


Kcdev\Disqus\DisqusServiceProvider::class,

'Disqus' => Kcdev\Disqus\Facades\Disqus::class,

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

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



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

ssh
php artisan vendor:publish --provider="Kcdev\Disqus\DisqusServiceProvider"