mb4it/bitrix-support

Helper library for 1C-Bitrix: ORM storage, migrations, EntityView, files, logging.

Maintainers

Package info

github.com/Dictator90/mb-bitrix-support

pkg:composer/mb4it/bitrix-support

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-04-19 14:15 UTC

This package is auto-updated.

Last update: 2026-04-19 14:15:29 UTC


README

Composer library for 1C-Bitrix projects: ORM storage helpers (MySQL / PostgreSQL batch SQL), Highload blocks, migration utilities, EntityView, files/images, logging.

Requirements

  • PHP ^8.2 (see composer.json)
  • Bitrix with D7 ORM and relevant modules at runtime (main, and optionally highloadblock, ui, etc.)

Install

composer require mb4it/bitrix-support

Several internal mb4it/* packages are pinned @dev today; for public consumption, align versions per your registry policy.

Autoload

Composer maps both:

  • MB\Bitrix\src/
  • MB\Core\src/ (legacy-aligned settings/config pages under MB\Core\Settings, MB\Core\Config, …)

A small app() helper is registered from src/Support/helpers.php; it delegates to MB\Bitrix\Foundation\Application::getInstance() (you must bootstrap the application first).

Namespace policy

Prefix Role Semver
MB\Bitrix\ Primary public API (Storage, Module, Migration, Foundation, most Config types, etc.). Prefer use statements from this tree for new code. Breaking changes follow semver for documented public entrypoints.
MB\Core\ Same repository, same src/ directory (second PSR‑4 root). Used today for settings/admin UI (MB\Core\Settings\*) and config discovery (MB\Core\Config\ConfigLocator). Treated as stable but Bitrix‑coupled until a planned merge into MB\Bitrix\ (no ETA in this package). Breaking renames of MB\Core\* types will be noted in CHANGELOG.md and may align with a future major.

Dual PSR‑4 is intentional: one physical tree, two logical prefixes. See docs/SUPPORTED.md for subsystem support levels.

Documentation

Matrix (high level)

Layer Notes
PHP ^8.2
Bitrix D7 ORM assumed; not tested against non-D7 cores
DB Batch helpers target MySQL (ROW in UPDATE … JOIN) and PostgreSQL (ON CONFLICT, VALUES updates). Confirm MariaDB behaviour in your version.

Development

composer validate
composer dump-autoload -o
composer test
composer phpstan