bulldogcreative / lacrm

PHP Client for Less Annoying CRM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaCRM

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

About

PHP Client for Less Annoying CRM


Languages

Language:PHP 100.0%