Laravel PHP Facade/Wrapper for First Promoter
This packages provides a nice and easy wrapper around the FirstPromoter API for use in your Laravel application.
In order to use the FirstPromoter API, you must have an account and API keys.
messerli90/first_promoter to your
composer require messerli90/first_promoter
composer update to pull down the latest version of the package.
Now open up
app/config/app.php and add the service provider to your
'providers' => array( Messerli90\FirstPromoter\FirstPromoterServiceProvider::class, )
Optionally, add the facade to your
'FirstPromoter' => \Messerli90\FirstPromoter\Facades\FirstPromoter::class,
first_promoter to your
'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 = );
The returned JSON data is decoded as a PHP object.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.