PHP code example of isap-ou / laravel-agile-crm
1. Go to this page and download the library: Download isap-ou/laravel-agile-crm 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/ */
isap-ou / laravel-agile-crm example snippets
return [
...
'domains' => [
...
'custom_domain' => [
'domain' => env('AGILE_CRM_DOMAIN'),
'email' => env('AGILE_CRM_EMAIL'),
'api_key' => env('AGILE_CRM_API_KEY'),
],
],
];
$contact = AgileCrm::contacts()->index()
$contact = AgileCrm::domain('custom_domain')->contacts()->index()
$contact = AgileCrm::contacts()->index()
use IsapOu\AgileCrm\Dto\ContactDto;
use IsapOu\AgileCrm\Dto\ContactPropertyDto;
use IsapOu\AgileCrm\Enums\ContactSystemPropertyName;
...
$properties = [];
$properties[] = new ContactPropertyDto(
name: ContactSystemPropertyName::FIRST_NAME,
value: 'John',
);
$properties[] = new ContactPropertyDto(
name: ContactSystemPropertyName::LAST_NAME,
value: 'Doe',
);
$properties[] = new ContactPropertyDto(
name: ContactSystemPropertyName::EMAIL,
value: '[email protected] ',
);
$dto = new ContactDto(properties: $properties);
$contactDto = AgileCrm::contacts()->create($dto);
...
bash
php artisan vendor:publish --tag="agile-crm"