Download the PHP package kosmosafive/bitrix-db without Composer

On this page you can find all versions of the php package kosmosafive/bitrix-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bitrix-db

Bitrix Database

Расширение соединения с базой данных Bitrix (MysqliConnection).

Конфигурация

Конфигурацию указывать в файле /bitrix/.settings.php или /bitrix/.settings_extra.php.

Использование

В качества класса DataManager используется Kosmosafive\Bitrix\DB\ORM\Data\DataManager.

Генерация запросов для пакетных операций с данными

Перед генерацией запросов может потребоваться предварительно загрузить карту таблицы.

Индексы

В классе, описывающем таблицу (наследник Kosmosafive\Bitrix\DB\ORM\Data\DataManager), необходимо реализовать интерфейс Kosmosafive\Bitrix\DB\ORM\Index\IndexInterface.

Порядок полей в индексе важен.

Создать индекс (вызывается в createDbTable()):

Связи

Связи формируются после создания таблиц. Удаляются перед удалением таблиц.

Связи вычисляются автоматически относительно полей типа \Bitrix\Main\ORM\Fields\Relations\Reference.

Для создания связей выполнить:

Для удаления связей выполнить:

Ограничения

В классе, описывающем таблицу (наследник Kosmosafive\Bitrix\DB\ORM\Data\DataManager), необходимо реализовать интерфейс Kosmosafive\Bitrix\DB\ORM\Constraint\ConstraintableInterface.

Создать ограничения (вызывается в createDbTable()):

Check

Kosmosafive\Bitrix\DB\ORM\Constraint\Check

Проверка переданного условия.

Unique

Kosmosafive\Bitrix\DB\ORM\Constraint\Unique

Проверка уникальности одного или нескольких полей.

Поля

Для маппинга кастомных полей в классе, описывающем таблицу (наследник Kosmosafive\Bitrix\DB\ORM\Data\DataManager), необходимо модифицировать метод getMap().

Boolean

Kosmosafive\Bitrix\DB\ORM\Fields\BooleanField

Поле, хранящее булево значение. Без возможности указания замещающего значения для true \ false.

Char

Kosmosafive\Bitrix\DB\ORM\Fields\CharField

Строка с фиксированной длиной.

Datetime

Kosmosafive\Bitrix\DB\ORM\Fields\DatetimeField

Поле, хранящее дату и время. Может хранить миллисекунды (size = 6).

Unsigned Integer

Kosmosafive\Bitrix\DB\ORM\Fields\UnsignedIntegerField

Беззнаковое целое.

Uuid

Kosmosafive\Bitrix\DB\ORM\Fields\UuidField

Поле, хранящее uuid. Можно использовать в качестве идентификатора.

Перед фильтрацией по значению поля необходимо подготовить данные:

Decimal

Kosmosafive\Bitrix\DB\ORM\Fields\DecimalField

Точное числовое значение. В отличие от оригинального поля не приводит к float.

Миграция


All versions of bitrix-db with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ramsey/uuid Version ^4.9
kosmosafive/bitrix-ds Version ^1.3
ext-bcmath Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kosmosafive/bitrix-db contains the following files

Loading the files please wait ...