PHP code example of nikolaposa / disqus-helper

1. Go to this page and download the library: Download nikolaposa/disqus-helper 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/ */

    

nikolaposa / disqus-helper example snippets


use DisqusHelper\Disqus;

$disqus = Disqus::create('disqus_shortname');

html
<html>
    <head>
        <title>Blog</title>

        
            //Page-specific Disqus configuration
            $disqus->configure([
                'page.identifier' => 'article1',
                'page.title' => 'My article',
            ]);