Download the PHP package devture/mongodb-migrations without Composer

On this page you can find all versions of the php package devture/mongodb-migrations. 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 mongodb-migrations

MIT license Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads

MongoDB Migrations

2022-02-05: This is a fork of the antimattr/mongodb-migrations library, which makes it work on PHP 8 and Symfony 6.

The MongoDB Migration library provides managed migration support for MongoDB. It was moved to the doesntmattr organisation from antimattr/mongodb-migrations to continue maintenance (See issue 16).

The original authors are @rcatlin and @matthewfitz

It follows the structure and features provided by Doctrine Migrations.

PHP Version Support

If you require php 5.6 support use version ^1.0. Version ^3.0 requires at least php 7.1. The 1.x releases will only receive bug fixes.

Symfony Bundle

There is a Symfony Bundle you can install to more easily integrate with Symfony. Use the installation instructions there:

https://github.com/devture/mongodb-migrations-bundle

Installation

To install with composer:

Features

Configuration

Similar to Doctrine Migrations, configuration is separated into 2 files:

Example connection configuration "test_antimattr_mongodb.php":

XML or YAML migration configuration files are supported.

Example XML "test_antimattr_mongodb.xml":

Example YAML "test_antimattr_mongodb.yml":

Console Command Support

There is an example Console Application in the /demo directory.

This is how you can register commands in your application:

Notice the console is executable:

Generate a New Migration

Migrations Status

Migrate all

This is what you will execute during your deployment process.

Execute a Single Migration

If you need to run a migration again, you can use the --replay argument.

Version Up or Down

Is your migration history out of sync for some reason? You can manually add or remove a record from the history without running the underlying migration.

You can delete:

You can add:

Analyze Migrations

Identify the collections you want to analyze. Statistics will be captured before and after the migration is run.

Execute JS Scripts

First identify the directory for scripts in your Migration Configuration:

Then execute the scripts via AbstractMigration::executeScript():

Contributing

PSR Standards

There is a git pre-commit hook that will fix all your contributed code to PSR standards.

You can install it with:

Testing

Tests should pass:

Code Sniffer and Fixer

If you didn't install the git pre-commit hook then ensure you run the fixer/sniffer manually:


All versions of mongodb-migrations with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
ext-mongodb Version *
mongodb/mongodb Version ^1.8
symfony/console Version ^2.7 || ^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/yaml Version ^2.7 || ^3.4 || ^4.0 || ^5.0 || ^6.0 || ^7.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 devture/mongodb-migrations contains the following files

Loading the files please wait ....