PHP code example of cyberduck / referer-tracker

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

    

cyberduck / referer-tracker example snippets


public function init() {
    parent::init(); 
    $this->refererTracker = new refererTracker(function($a, $b) { return \Session::set($a, $b); }, function ($q) { return \Session::get($q); } );
    $this->refererTracker->log();
}

$this->refererTracker->retrieveInternal()

$this->refererTracker->retrieveExternal()

$this->refererTracker->retrieveAll()