mesilov/bitrix24-php-lib
最新稳定版本:0.3.0
Composer 安装命令:
composer require mesilov/bitrix24-php-lib
包简介
A powerful PHP library for rapid Bitrix24 application development
README 文档
README
PHP lib for Bitrix24 application development
Build status
CI\CD status on master |
|---|
Application Domain
The library is designed for rapid development of Bitrix24 applications. Provides data storage layer in PostgreSQL database using Doctrine ORM.
Implements contracts from bitrix24-php-sdk.
Supported Contracts
Bitrix24Accounts — ✅
Responsible for storing Bitrix24 accounts with portal access tokens.
ApplicationInstallations — ✅
Responsible for storing installation facts of applications on specific Bitrix24 portals
ContactPersons — ⏳ work in progress
Responsible for storing contact persons who performed application installation
Bitrix24Partners — ⏳ work in progress
Responsible for storing Bitrix24 partners who performed installation or service the portal
ApplicationSettings — ✅
Responsible for storing application settings for specific Bitrix24 portal
Architecture
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
src/
Bitrix24Accounts
Controllers
Entity
Exceptions
Events
EventListeners
Infrastructure
ConsoleCommands
Doctrine
Types
Repository
ReadModel
UseCases
SomeUseCase
Tests
Quick Start
Prerequisites
- Docker and Docker Compose
- Make
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
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
- library is made cloud-agnostic
Development Rules
- We use linters
- Library is covered with tests
- All work is organized through issues
- Development processes are remote first
- Think and discuss — then write
统计信息
- 总下载量: 116
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-11