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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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/995c4519028795d89f3c599b17f7379977f82163da07b39cdfced90fdf665fd0?d=identicon)[tpmanc](/maintainers/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

[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)[knplabs/github-api

GitHub API v3 client

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

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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