PHP code example of laravel_crm / capsulecrm
1. Go to this page and download the library: Download laravel_crm/capsulecrm 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/ */
laravel_crm / capsulecrm example snippets
'providers' => [
CapsuleCRM\CapsuleServiceProvider::class,
];
'aliases' => [
'CapsuleCRM'=>CapsuleCRM\Facades\CapsuleCRM::class,
];
CapsuleCRM::{entity name}()
CapsuleCRM::party()
CapsuleCRM::party();
$data = [
'name' => 'youssef daood',
'email' => '[email protected] ',
'tags' => ['register','subscribe']
];
CapsuleCRM::party()->create($data);
$data = [
'name' => 'youssef daood',
'email' => '[email protected] '
];
$tag = 'subscribe';
CapsuleCRM::party()->register($data, $tag);
$id = 1; // id of capsule
$data = [
'name' => 'youssef'
];
CapsuleCRM::party()->update($id, $data);
$email = '[email protected] ';
CapsuleCRM::party()->validateUniqueEmail($email);
$filter = 'youssef';
CapsuleCRM::party()->search($filter);
$party_id=123456;
$party = CapsuleCRM::party()->fetch($party_id);
$party_id=123456;
$people = CapsuleCRM::party()->people($party_id);
config/app.php
config/app.php
bash
php artisan vendor:publish --tag=capsuleCRM --force