PHP code example of mundocrm / leads-sender

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

    

mundocrm / leads-sender example snippets



bash
curl -sS https://getcomposer.org/installer | php

php composer.phar 

 $leads = new Sender($app_key, $source_id, $data, $items, $debug); 

$response = $leads->send();

// Example to simple return
echo json_encode($response);

// Example to Laravel response:
return response()->json($response, $response->status_code);