PHPackages                             mesilov/bitrix24-php-lib - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mesilov/bitrix24-php-lib

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mesilov/bitrix24-php-lib
========================

A powerful PHP library for rapid Bitrix24 application development

0.4.0(2mo ago)52103[19 issues](https://github.com/mesilov/bitrix24-php-lib/issues)[3 PRs](https://github.com/mesilov/bitrix24-php-lib/pulls)MITPHPPHP 8.3.\* || 8.4.\*CI passing

Since Sep 1Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/mesilov/bitrix24-php-lib)[ Packagist](https://packagist.org/packages/mesilov/bitrix24-php-lib)[ Docs](https://github.com/mesilov/bitrix24-php-lib)[ RSS](/packages/mesilov-bitrix24-php-lib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (65)Versions (22)Used By (0)

bitrix24-php-lib
================

[](#bitrix24-php-lib)

PHP lib for Bitrix24 application development

Build status
------------

[](#build-status)

CI\\CD [status](https://github.com/mesilov/bitrix24-php-lib/actions) on `master`[![allowed licenses check](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/license-check.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/license-check.yml)[![php-cs-fixer check](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-cs-fixer.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-cs-fixer.yml)[![phpstan check](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-phpstan.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-phpstan.yml)[![rector check](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-rector.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/lint-rector.yml)[![unit-tests status](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/tests-unit.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/tests-unit.yml)[![functional-tests status](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/tests-functional.yml/badge.svg)](https://github.com/mesilov/bitrix24-php-lib/actions/workflows/tests-functional.yml)Application Domain
------------------

[](#application-domain)

The library is designed for rapid development of Bitrix24 applications. Provides data storage layer in [PostgreSQL](https://www.postgresql.org/) database using [Doctrine ORM](https://www.doctrine-project.org/).

Implements [contracts](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts) from bitrix24-php-sdk.

Supported Contracts
-------------------

[](#supported-contracts)

### Bitrix24Accounts — ✅

[](#bitrix24accounts--)

Responsible for storing [Bitrix24 accounts](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts/Bitrix24Accounts)with portal access tokens.

### ApplicationInstallations — ✅

[](#applicationinstallations--)

Responsible for storing [installation facts](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts/ApplicationInstallations)of applications on specific Bitrix24 portals

### ContactPersons — ⏳ work in progress

[](#contactpersons---work-in-progress)

Responsible for storing [contact persons](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts/ContactPersons)who performed application installation

### Bitrix24Partners — ⏳ work in progress

[](#bitrix24partners---work-in-progress)

Responsible for storing [Bitrix24 partners](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts/Bitrix24Partners) who performed installation or service the portal

### ApplicationSettings — ✅

[](#applicationsettings--)

Responsible for storing [application settings](https://github.com/bitrix24/b24phpsdk/tree/main/src/Application/Contracts/ApplicationSettings)for specific Bitrix24 portal

Architecture
------------

[](#architecture)

### Layers and Abstraction Levels

[](#layers-and-abstraction-levels)

```
bitrix24-app-laravel-skeleton – Laravel application template
bitrix24-app-symfony-skeleton – Symfony application template
bitrix24-php-lib – application entities work and their storage in database
bitrix24-php-sdk – transport layer + transport events (expired token, portal renamed)

```

### Bounded Context Folder Structure

[](#bounded-context-folder-structure)

```
src/
    Bitrix24Accounts
        Controllers
        Entity
        Exceptions
        Events
        EventListeners
        Infrastructure
            ConsoleCommands
            Doctrine
                Types
        Repository
        ReadModel
        UseCases
            SomeUseCase
        Tests

```

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

[](#quick-start)

### Prerequisites

[](#prerequisites)

- Docker and Docker Compose
- Make

### Running Tests

[](#running-tests)

```
# Initialize and start services
make up

# Run functional tests (uses default database configuration)
make test-run-functional

# Run linters
make lint-phpstan
make lint-cs-fixer
make lint-rector
```

### Database Configuration

[](#database-configuration)

Default database credentials are pre-configured in `.env`:

- Host: `database` (Docker service)
- Database: `b24phpLibTest`
- User: `b24phpLibTest`
- Password: `b24phpLibTest`

No additional configuration needed for running tests.

Infrastructure
--------------

[](#infrastructure)

- library is made cloud-agnostic

Development Rules
-----------------

[](#development-rules)

1. We use linters
2. Library is covered with tests
3. All work is organized through issues
4. Development processes are remote first
5. Think and discuss — then write

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance67

Regular maintenance activity

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~68 days

Total

4

Last Release

75d ago

PHP version history (3 changes)0.1.0PHP 8.3.\*

0.2.0PHP ^8.3

0.3.0PHP 8.3.\* || 8.4.\*

### Community

Maintainers

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

---

Top Contributors

[![KarlsonComplete](https://avatars.githubusercontent.com/u/61900565?v=4)](https://github.com/KarlsonComplete "KarlsonComplete (171 commits)")[![mesilov](https://avatars.githubusercontent.com/u/1843965?v=4)](https://github.com/mesilov "mesilov (144 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (28 commits)")[![camaxtly](https://avatars.githubusercontent.com/u/11616039?v=4)](https://github.com/camaxtly "camaxtly (12 commits)")

---

Tags

bitrix24phpsaasphpapirestsaasBitrix24Bitrix24 Application

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mesilov-bitrix24-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/mesilov-bitrix24-php-lib/health.svg)](https://phpackages.com/packages/mesilov-bitrix24-php-lib)
```

###  Alternatives

[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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