PHPackages                             espocrm/php-espo-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. espocrm/php-espo-api-client

ActiveLibrary[API Development](/categories/api)

espocrm/php-espo-api-client
===========================

API client for EspoCRM.

1.0.1(3mo ago)2014.2k↓30.5%2MITPHPPHP &gt;=8.0.0

Since Dec 23Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/espocrm/php-espo-api-client)[ Packagist](https://packagist.org/packages/espocrm/php-espo-api-client)[ RSS](/packages/espocrm-php-espo-api-client/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

PHP EspoCRM API client
======================

[](#php-espocrm-api-client)

Require with Composer:

```
composer require espocrm/php-espo-api-client

```

Usage
-----

[](#usage)

```
use Espo\ApiClient\Client;
use Espo\ApiClient\Header;
use Espo\ApiClient\Exception\ResponseError;

$client = new Client($yourEspoUrl);
$client->setApiKey($apiKey);
$client->setSecretKey($secretKey); // if you use HMAC method

try {
    $response = $client->request(
        Client::METHOD_POST,
        'Lead',
        [
            'firstName' => $firstName,
            'lastName' => $lastName,
            'emailAddress' => $emailAddress,
        ],
        [new Header('X-Skip-Duplicate-Check', 'true')]
    );

    $parsedBody = $response->getParsedBody();
} catch (ResponseError $e) {
    // Error response.
    $response = $e->getResponse();

    $code = $response->getCode();
    $body = $response->getBodyPart();

    // Consider using some additional library if you need parsed response headers.
}
```

Changelog
---------

[](#changelog)

### 1.0.0

[](#100)

- Using new method for constructing *X-Hmac-Authorization* header [\#2](https://github.com/espocrm/php-espo-api-client/issues/2)

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance79

Regular maintenance activity

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~392 days

Total

4

Last Release

109d ago

Major Versions

0.1.1 → 1.0.02024-11-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/2510d62c0e095eb3ccfbd74cfdef0ec0773ff68d04fc3f996d8e4bc7328aa45e?d=identicon)[espocrm](/maintainers/espocrm)

---

Top Contributors

[![yurikuzn](https://avatars.githubusercontent.com/u/1006792?v=4)](https://github.com/yurikuzn "yurikuzn (13 commits)")

---

Tags

api-clientespocrmphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/espocrm-php-espo-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/espocrm-php-espo-api-client/health.svg)](https://phpackages.com/packages/espocrm-php-espo-api-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
