PHP code example of messerli90 / first_promoter

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

    

messerli90 / first_promoter example snippets


'providers' => array(
    Messerli90\FirstPromoter\FirstPromoterServiceProvider::class,
)

'FirstPromoter' => \Messerli90\FirstPromoter\Facades\FirstPromoter::class,

'first_promoter' => [
    'key' => 'YOUR_API_KEY'
]

use Messerli90\FirstPromoter\FirstPromoter;

$first_promoter = new FirstPromoter(config('services.$first_promoter.key'));

// With this call you can track the referral signs-ups server-side.
$first_promoter->trackSignUp($wid, $email, $data = []);