bulldog/lacrm

API Client for Less Annoying CRM

v0.1.0 2018-08-27 20:53 UTC

This package is auto-updated.

Last update: 2024-05-05 18:23:14 UTC


README

Build Status Coverage Status

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);

Regular Client