PHP code example of carlosocarvalho / disqus

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

    

carlosocarvalho / disqus example snippets



#Create file in config/disqus.php and add 
$config['disqus']=array('disqus_name'=>'yourname');
     

 
#Create file in helpers/disqus_helper.php and add 
use carlosocarvalho\Disqus\Disqus;
function disqus(){
            if( ! is_callable('Disqus','render') ) return '';
            return Disqus::render();
        }