PHP code example of linkprofit-cpa / yii2-referral-filter

1. Go to this page and download the library: Download linkprofit-cpa/yii2-referral-filter 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/ */

    

linkprofit-cpa / yii2-referral-filter example snippets


/**
 * @inheritdoc
 */
public function behaviors()
{
    /* 1 day in seconds, until browser closed by default */
    $expire = 60 * 60 * 24;
    return [
        [
            'class' => 'linkprofit\ReferralFilter\ReferralFilter',
            'sessionMarkers' => [
                'data1', 'data2', 'data3', 'data4', 'data5', 'chan'
            ],
            'cookiesMarkers' => [
                'refid', 'cfads', 'CampaignID'
            ],
            'cookiesExpire' => $expire
        ],
    ];