PHPackages                             tpmanc/crmclient - 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. tpmanc/crmclient

ActiveLibrary[API Development](/categories/api)

tpmanc/crmclient
================

Client for CRM

071PHP

Since Aug 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tpmanc/crm-client)[ Packagist](https://packagist.org/packages/tpmanc/crmclient)[ RSS](/packages/tpmanc-crmclient/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CRM Client
==========

[](#crm-client)

Install via Composer
--------------------

[](#install-via-composer)

Run the following command

```
$ composer require tpmanc/crmclient "*"
```

or add

```
$ "tpmanc/crmclient": "*"
```

to the require section of your `composer.json` file.

Send orders
-----------

[](#send-orders)

```
use tpmanc\crmclient\ApiClient;
use tpmanc\crmclient\Client;
use tpmanc\crmclient\Order;
use tpmanc\crmclient\OrderProduct;
use tpmanc\crmclient\OrderProducts;

...

$client = new Client(
    'Name 8', // name
    '+7 (952) 268-97-23' // phone
);
$client->setEmail('email@email.test');
$client->setAddress('Address');
$client->setDelivery('Delivery Type');
$client->setPayment('Payment Type');
$client->setComment('Comment');

$orderProducts = new OrderProducts();
$orderProducts->addProduct(new OrderProduct(
    1982, // product id
    5000 // product price
));
$orderProducts->addProduct(new OrderProduct(
    6571, // product id
    1000, // product price
    5 // amount
));

$orderMethod = 1;
$order = new Order(
    '5317263', // id
    $orderMethod,
    $client
);
$timestamp = time();
$order->setDate($timestamp);
$order->setStatus(3);
$order->setProducts($orderProducts);

$apiUrl = 'http://localhost:8080';
$token = '5XG2qsuKriI6Cq6sYX9krZb622rQ9w6O6XW833HZ';
$api = new ApiClient($apiUrl, $token);
$api->addOrder($order);

$result = $api->sendOrders();
```

Response
--------

[](#response)

```
{
    "result":"ok",
    "orders":[
        {"crmId":51,"orderId":107256},
        {"crmId":52,"orderId":107257},
        {"crmId":53,"orderId":107258},
        {"crmId":54,"orderId":107259},
        {"crmId":55,"orderId":107260}
    ]
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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://avatars.githubusercontent.com/u/6450943?v=4)[Chukantsev Nikita](/maintainers/tpmanc)[@tpmanc](https://github.com/tpmanc)

---

Top Contributors

[![tpmanc](https://avatars.githubusercontent.com/u/6450943?v=4)](https://github.com/tpmanc "tpmanc (11 commits)")

### Embed Badge

![Health badge](/badges/tpmanc-crmclient/health.svg)

```
[![Health](https://phpackages.com/badges/tpmanc-crmclient/health.svg)](https://phpackages.com/packages/tpmanc-crmclient)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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