Download the PHP package andy87/yii2-migrate-architect without Composer

On this page you can find all versions of the php package andy87/yii2-migrate-architect. 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 yii2-migrate-architect

Yii2 migrate architect

Yii2 migrate architect - библиотека для фреймворка Yii2 упрощающая написание кода миграций.

Цель: сделать простой и быстрый инструмент добавления миграций.

Содержание:


Установка

Требования

- php >=8.0 - Yii2

Composer

## Добавление пакета в проект

Используя: консольные команды. (Предпочтительней)

- используя composer, установленный локально ` - используя composer.phar **Далее:** обновление зависимостей `composer install`

Используя: файл `composer.json`

Открыть файл `composer.json` В раздел, ключ `require` добавить строку `"andy87/yii2-migrate-architect": "*"` **Далее:** обновление зависимостей `composer install`

- - - - -

В конфигурационном файле `config/console.php` добавить контроллер: `andy87\yii2\architect\components\controllers\ArchitectController` Пример с кастомизацией: - **directoryTemplateMigrations** _путь к шаблонам миграций_ - **migrateTemplateMapping** _маппинг шаблонов миграций_ - **snippetsMigrationFilename** _шаблоны имён файлов миграции_ ___ ## Использование Консольная команда: Запускает интерактивное меню для: - запуска миграций - создания миграций - с предустановленными шаблонами миграций использующих базовые классы: - `andy87\yii2\architect\CreateTable` - `andy87\yii2\architect\UpdateTable` ___ ## Простые примеры миграций ### CreateTable. #### Создание таблицы Колонки: `id`, `created_at`, `updated_at` создадутся автоматически Отмена создания колонок, происходит через назначение значения `false` или `null` для колонки. Для примера: `id`, `updated_at` не будут созданы ### UpdateTable. #### Добавление колонки Для добавления колонки, необходимо переопределить метод `columnsListAdd`, вернув массив с описанием колонок. #### Добавление колонок и внешних ключей Для добавления колонок и внешних ключей, необходимо переопределить методы `columnsListAdd` и `foreignKeyList`, вернув массивы с описанием колонок и внешних ключей. #### Редактирование таблицы Для редактирования колонки, необходимо переопределить метод `columnsListUpdate`, вернув массив с описанием колонок. #### Переименование колонки Для переименования колонки, необходимо переопределить свойство `renameColumnList`, вернув массив с мэппингом старых и новых названий колонок. #### Удаление колонок Для удаления колонок, необходимо переопределить свойство `removeColumnList`, вернув массив с названиями колонок для удаления в ключе, а в значении массив указывающий на связи через внешние ключи. [Packagist](https://packagist.org/packages/andy87/yii2-migrate-architect)

All versions of yii2-migrate-architect with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
yiisoft/yii2 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 andy87/yii2-migrate-architect contains the following files

Loading the files please wait ....