dev-master
9999999-dev https://github.com/drei-kr/espocrm-apiPHP API for EspoCRM
MIT
The Requires
The Development Requires
espocrm crm rest api espocrm api php crm api pluscrm opensource crm api
Wallogit.com
2017 © Pedro Peláez
PHP API for EspoCRM
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)
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';
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)
PHP API for EspoCRM
MIT
espocrm crm rest api espocrm api php crm api pluscrm opensource crm api