PHP code example of umobi / rdstation-laravel

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

    

umobi / rdstation-laravel example snippets


// config/services.php
...
'rdstation' => [
    'token' => env('RDSTATION_TOKEN'),
    'private_token' => env('RDSTATION_PRIVATE_TOKEN'),
],

 app('rdstation')->register($source, [
    'name' => $name,
    'email' => $email,
    'mobile_phone' => $lead->phone_number,
    ... // RDStation Lead fields
]);