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(2mo ago)1911.0k—9.4%2MITPHPPHP &gt;=8.0.0

Since Dec 23Pushed 2mo 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 1mo ago

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

50

—

FairBetter than 96% of packages

Maintenance87

Actively maintained with recent releases

Popularity35

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

64d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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