A simple PHP Client for Less Annoying CRM.
composer require bulldog/lacrm
You will need to install guzzlehttp/guzzle
by running composer require guzzlehttp/guzzle
if you do not want to write your own adapter. If you do want to write your own
adapter, it will need to implement the ClientInterface
in this package. If
you are not sure what to do, then install Guzzle by running
composer require guzzlehttp/guzzle
.
<?php
include 'vendor/autoload.php';
// If you installed Guzzle, then this will create and return the Client object
$client = Bulldog\LaCrm\SimpleClient::create('UserCode', 'ApiToken');
$contact = new Bulldog\LaCrm\Endpoints\Contacts\CreateContact;
$contact->FullName = "Levi";
$client->createContact($contact);