bulldog / lacrm
API Client for Less Annoying CRM
v0.1.0
2018-08-27 20:53 UTC
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.3
- vlucas/phpdotenv: ^2.5
Suggests
- guzzlehttp/guzzle: You will need this if you don't want to write your own adapter.
This package is auto-updated.
Last update: 2024-12-05 19:32:28 UTC
README
A simple PHP Client for Less Annoying CRM.
Installation
composer require bulldog/lacrm
Usage
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
.
Simple Client
<?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);