1. Go to this page and download the library: Download star-insure/crm-client 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/ */
star-insure / crm-client example snippets
CrmApi::get('/account-manager-brokers');
if (! function_exists('crm')) {
/**
* Global helper to create an instance of the StarCrm client.
*/
function crm()
{
return new \StarInsure\Crm\CrmApi(
config('crm.version'),
);
}
}
crm()->get('/account-manager-brokers');
sh
php artisan vendor:publish --tag=starinsure-crm