PHP code example of madebyraygun / trending-posts
1. Go to this page and download the library: Download madebyraygun/trending-posts 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/ */
madebyraygun / trending-posts example snippets
return [
'trackDays' => 7, //default is 7 days
'trackSection' => [1,2], //limit tracking to specific sections
'visitorTimeout' => 15 //default is 15 minutes
];