2017 © Pedro Peláez
 

library espocrm-api

PHP API for EspoCRM

image

drei-kr/espocrm-api

PHP API for EspoCRM

  • Sunday, October 9, 2016
  • by ddanninger
  • Repository
  • 2 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

espocrm-api

Installation

The Package is available on Packagist (drei-kr/espocrm-api) and as such installable via Composer., (*1)

If you do not use Composer, you can grab the code from GitHub, and use any PSR-4 compatible autoloader (e.g. the Symfony ClassLoader component) to load the library's classes., (*2)

Composer example

Add espocrm-api in your composer.json:, (*3)

{
    "require": {
        "drei-kr/espocrm-api": "dev-master"
    }
}

Download the library:, (*4)

``` bash $ php composer.phar update drei-kr/espocrm-api, (*5)


After installing, you need to require Composer's autoloader somewhere in your code: ```php require_once 'vendor/autoload.php';

Usage

use Drei\EspoCRM\Client\EspoClient;

$client = EspoClient::factory([
    'url'     => 'http://plus.dev/',     // required
    'username' => 'admin', // required
    'token' => 'admin' // required
]);


$command = $client->getCommand('list', [
    'entityType' => 'Account',
    'maxSize'  => 10
]);

$results = (array) $client->execute($command); // returns an array of results

You can find a list of the client's available commands in the bundle's client.json or take a look into the api docu of espocrm https://github.com/espocrm/documentation/blob/master/development/api.md., (*6)

The Versions

09/10 2016

dev-master

9999999-dev https://github.com/drei-kr/espocrm-api

PHP API for EspoCRM

  Sources   Download

MIT

The Requires

 

The Development Requires

espocrm crm rest api espocrm api php crm api pluscrm opensource crm api