PHP code example of mralston / cxm
1. Go to this page and download the library: Download mralston/cxm 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/ */
mralston / cxm example snippets
// Create a Contact DTO
$contact = Contact::make([
// ...attributes
]);
// Create a DataList DTO
$dataList = DataList::make([
'id' => '...'
]);
// Load the contact into the dialler.
// $result reflects the Contact record created on the dialler and contains its ID
$result = Cxm::customerLoadSingle($contact, $dataList);
bash
php artisan vendor:publish --tag=cxm-config