PHPackages                             webmens-ru/b24-partners-api-php-sdk - 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. webmens-ru/b24-partners-api-php-sdk

ActiveLibrary[API Development](/categories/api)

webmens-ru/b24-partners-api-php-sdk
===================================

PHP SDK for Bitrix24 Partner REST API (sb.api.v1.partner.\*)

0.0.4(1mo ago)06proprietaryPHPPHP &gt;=8.0

Since Jul 2Pushed 1mo agoCompare

[ Source](https://github.com/webmens-ru/b24-partners-api-php-sdk)[ Packagist](https://packagist.org/packages/webmens-ru/b24-partners-api-php-sdk)[ RSS](/packages/webmens-ru-b24-partners-api-php-sdk/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

B24 Partners API PHP SDK
========================

[](#b24-partners-api-php-sdk)

PHP SDK for Bitrix24 Partner REST API (`sb.api.v1.partner.*`).

Installation
------------

[](#installation)

```
composer require webmens-ru/b24-partners-api-php-sdk
```

Quick Start
-----------

[](#quick-start)

```
use Webmens\B24PartnersApi\PartnerApi;

$api = new PartnerApi(
    accessToken: 'your-access-token',
    refreshToken: 'your-refresh-token',
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret',
);

// Get profile
$profile = $api->profile()->get();
echo $profile->name;

// List cloud clients
$clients = $api->clients()->list(type: 'cloud', limit: 50);
foreach ($clients->items as $client) {
    echo $client->portalUrl;
}

// Create order
use Webmens\B24PartnersApi\Requests\RequestItem;

$request = $api->requests()->create(
    email: 'client@example.com',
    portalUrl: 'demo.bitrix24.ru',
    items: [new RequestItem(productId: 16204918, quantity: 1)],
);
echo $request->shortUrl; // Payment link

// Netflow
$attention = $api->netflow()->attentionList(withForecast: true);
```

Error Handling
--------------

[](#error-handling)

```
use Webmens\B24PartnersApi\Exceptions\ValidationException;
use Webmens\B24PartnersApi\Exceptions\UnauthorizedException;

try {
    $request = $api->requests()->create(...);
} catch (ValidationException $e) {
    foreach ($e->errors as $error) {
        echo "{$error['field']}: {$error['reason']}";
    }
} catch (UnauthorizedException $e) {
    // Refresh failed — need to reissue token
}
```

Available Methods
-----------------

[](#available-methods)

### Profile

[](#profile)

- `profile()->get()` — Get partner profile

### Clients

[](#clients)

- `clients()->list(type, page, limit)` — List clients (cloud/box)
- `clients()->get(type, cloudId, clientId)` — Get single client

### Requests

[](#requests)

- `requests()->list(status, orderId, page, limit, sortField, sortOrder)` — List requests
- `requests()->get(requestId, orderId)` — Get single request
- `requests()->getPayment(requestId, orderId)` — Get payment data
- `requests()->create(email, items, portalUrl, ...)` — Create request

### Netflow

[](#netflow)

- `netflow()->summary(dateFrom, dateTo)` — Get summary
- `netflow()->events(page, limit, ...)` — List events
- `netflow()->base(date)` — Get base snapshot
- `netflow()->baseList(date, page, limit, ...)` — List base
- `netflow()->clientList(page, limit, ...)` — List clients
- `netflow()->attentionList(dateTo, page, limit, ...)` — List attention clients
- `netflow()->dictionary(lang)` — Get code dictionary

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- Guzzle 7

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance90

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50d0841616f433d79843717af26ccce19429164e1affe619b60c9173c5c31cb5?d=identicon)[Lukoyanov\_aa@webmens.ru](/maintainers/Lukoyanov_aa@webmens.ru)

---

Top Contributors

[![lukoyanov-aa](https://avatars.githubusercontent.com/u/33396443?v=4)](https://github.com/lukoyanov-aa "lukoyanov-aa (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webmens-ru-b24-partners-api-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/webmens-ru-b24-partners-api-php-sdk/health.svg)](https://phpackages.com/packages/webmens-ru-b24-partners-api-php-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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