PHPackages                             synergyedu/synergycrm-api-client-php - 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. synergyedu/synergycrm-api-client-php

ActiveLibrary[API Development](/categories/api)

synergyedu/synergycrm-api-client-php
====================================

04PHPCI failing

Since Sep 21Pushed 4y ago2 watchersCompare

[ Source](https://github.com/synergyedu/synergycrm-api-client-php)[ Packagist](https://packagist.org/packages/synergyedu/synergycrm-api-client-php)[ RSS](/packages/synergyedu-synergycrm-api-client-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Synergy API Client
------------------

[](#synergy-api-client)

PHP JSON:API Client for SynergyCRM

### Installation

[](#installation)

```
composer require synergyedu/synergycrm-api-client-php:dev-main

```

### Usage

[](#usage)

```
use SynergyCrm\ApiClient;
use WoohooLabs\Yang\JsonApi\Request\ResourceObject;

$api_token = 'e4b9ec90ee3e2ff81240129265bc7cfd640bfc51268bc9d5a545af8dde937942';
$client = new ApiClient('https://app.syncrm.ru/api/v1/', $api_token);

# create contact with error handling

$contactObject = new ResourceObject("contacts",'');
$contactObject->setAttributes( array(
    "first-name" => "Ivan",
    "last-name" => "Ivanov",
    'email' => "ivan.ivanov@example.com"
));

try {
    $response = $client->createContact($contactObject);
} catch (Http\Client\Exception\NetworkException $e) {
    echo($e->getMessage()."\n");
}

if ($response->isSuccessful()) {
    $contact = $response->document()->primaryResource();
    $createdContactId = $contact->id();
    echo $createdContactId;
} else {
    echo(sprintf("Request failed: %s\n", $response->getReasonPhrase()));
    if ($response->hasDocument() && $response->document()->hasErrors()) {
        foreach ($response->document()->errors() as $error) {
          echo(sprintf("Error: %s: %s\n", $error->title(), $error->detail()));
        }
    }
}

# update contact using JSON

$response = $client->sendPatchRequest("contacts", '{
  "data": {
    "type": "contacts",
    "id": '. $createdContactId .',
    "attributes": {
      "last-name": "Petrov"
    }
  }
}');

# delete contact specifying id as part of method
$response = $client->sendDeleteRequest("contacts/".$createdContactId);

# delete contact using resource object
$response = $client->sendDeleteRequest("contacts", $contact);

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c107f0b665268932591476c727b6cec80e2aca73c7f01f8c46b3fa608005d94b?d=identicon)[serg123e](/maintainers/serg123e)

---

Top Contributors

[![serg123e](https://avatars.githubusercontent.com/u/4356025?v=4)](https://github.com/serg123e "serg123e (15 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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