Download the PHP package nowo-tech/migrations-kit-bundle without Composer

On this page you can find all versions of the php package nowo-tech/migrations-kit-bundle. 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 migrations-kit-bundle

Migrations Kit Bundle

CI Packagist Version Packagist Downloads

Symfony bundle that provides helpers for Doctrine Migrations: schema checks (table/column/index exist) and array-based migration definitions, so you can write idempotent migrations without repeating SQL and with safe checks. For Symfony 6, 7 or 8 · PHP 8.1+ · Doctrine DBAL 2.x–4.x and doctrine/migrations 3.x–4.x.

Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.

Table of contents

Quick search terms

Looking for Doctrine migrations helpers, table exists migration, column exists check, idempotent migrations, migration schema check, Symfony Doctrine Migrations, declarative schema migrations? You're in the right place.

Features

Installation

Install from Packagist

With Symfony Flex, the recipe (when enabled) registers the bundle and creates the config file automatically. Without Flex, see docs/INSTALLATION.md for manual steps.

Manual registration in config/bundles.php:

Configuration

Create config/packages/nowo_migrations_kit.yaml (optional; defaults to connection: default):

Full options: docs/CONFIGURATION.md.

Usage

In your migration, use the migration's connection — no service injection required:

SchemaChecker — run SQL only when something does not exist:

CreateTablesService — apply a declarative definition (MDK format); the service returns the list of SQL statements; add each with $this->addSql():

More examples: docs/EXAMPLE.md.

Documentation

Additional documentation

Requirements

Databases: the bundle is compatible with SQLite, MySQL and PostgreSQL. Use the same migrations and helpers; platform-specific SQL is handled by Doctrine DBAL.

See docs/UPGRADING.md for compatibility notes.

Demo

Demos for Symfony 7 and 8 are in demo/symfony7, demo/symfony8. Each runs with FrankenPHP in Docker. With the default APP_ENV=dev, the entrypoint uses Caddyfile.dev (no PHP worker: one process per request). Production-style demos use the default Caddyfile with worker mode (see demo/README.md and each demo/symfony*/README.md have run instructions.

Development

Run tests and QA with Docker: docker compose up -d --build && docker compose exec php composer install && docker compose exec php composer test (or composer test-coverage, composer qa). Without Docker: composer install && composer test. See Makefile for all targets.

Tests and coverage

License

The MIT License (MIT). Please see LICENSE for more information.

Author

Created by Héctor Franco Aceituno at Nowo.tech


All versions of migrations-kit-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1 <8.6
doctrine/dbal Version ^2.13 || ^3.0 || ^4.0
doctrine/doctrine-bundle Version ^2.8 || ^3.0
doctrine/migrations Version ^3.5 || ^4.0
symfony/config Version ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^6.0 || ^7.0 || ^8.0
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 nowo-tech/migrations-kit-bundle contains the following files

Loading the files please wait ...