Download the PHP package andreyryabin/sprint.migration without Composer

On this page you can find all versions of the php package andreyryabin/sprint.migration. 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?
andreyryabin/sprint.migration
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package sprint.migration

Миграции для разработчиков (1С-Битрикс)

Latest Stable Version Total Downloads

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

Все изменения для базы данных пишутся в файлы миграций, эти файлы, как и весь код проекта, хранятся в системе контроля версий (например git) и попадают в копии разработчиков, после чего им необходимо выполнить установку новых миграций, чтобы обновить бд.

Работать можно как через консоль, так и через админку.

Особая благодарность

Самой лучшей IDE на свете!\ Phpstorm

А также всем помощникам!\ https://github.com/andreyryabin/sprint.migration/blob/master/contributors.txt

Установка через composer

Пример вашего composer.json с установкой модуля в local/modules/

Консоль

Для работы через консоль используется скрипт /bitrix/modules/sprint.migration/tools/migrate.php

Можно запускать его напрямую или сделать алиас, создав файл в корне проекта, bin/migrate и прописав в нем:

Консоль symfony

Если у вас используется связка bitrix + symfony, то можно подключить модуль как бандл симфони и запускать консольные команды модуля через

php bin/console sprint:migration

Пример регистрации бандла:

Пример без регистрации бандла, только команды в symfony/console

Классы модуля должны уже быть автозагружены, через CModule::IncludeModule('sprint.migration')

Или через библиотеку https://packagist.org/packages/webarchitect609/bitrix-neverinclude (рекомендую этот вариант)

Примеры команд

Все команды: https://github.com/andreyryabin/sprint.migration/blob/master/commands.txt

Скриншоты

Админка миграций bitrix-sprint-migration-1.png

Формы создания миграций bitrix-sprint-migration-2.png


All versions of sprint.migration with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
composer/installers Version ~1
ext-json Version *
ext-iconv 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 andreyryabin/sprint.migration contains the following files

Loading the files please wait ....