Download the PHP package mi/mongodb-migrations without Composer

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

MongoDB Migrations

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

Overview

...

Installation

Composer

for PHP 7 and greater with the new mongoDB-extension

composer require mi/mongodb-migrations

for other PHP-Versions

composer require mi/mongodb-migrations ^1.0.0@beta

Puli-Bindings

MY_BUNDLE_ALIAS = the alias of your bundle (for example my_awesome_bundle)

puli bind --class Mi\\MongoDb\\Migration\\DependencyInjection\\MigrationPlugin Matthias\\BundlePlugins\\BundlePlugin --param bundle-alias=<MY_BUNDLE_ALIAS>
puli bind /mi/mongodb-migrations/*.xml mi/service
puli build

Configuration

my_awesome_bundle:
    ...

    migration:
        path: '/path/to/version/class/directory'                            // path where versions will be constructed
        xml_path: '/path/to/version/service-definition/file'                // service-definitions where versions will be defined
        namespace: "namespace\\of\\generated\\versions"                     // namespace versions will be constructed with
        migration_collection: 'migration.collection.service.definition.id'  // need to be from type MongoCollection

refresh autoloader

add namespace namespace\\of\\generated\\versions to autoloader and execute

composer dump-autoload

Usage

create version

console mi:mongo-db:migration:generate

execute migration

console mi:mongo-db:migration:migrate

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is under the MIT license.


All versions of mongodb-migrations with dependencies

PHP Build Version
Package Version
Requires ext-mongodb Version *
php Version ^5.6|^7.0
symfony/console Version ^2.7
symfony/filesystem Version ^2.7
zendframework/zend-code Version ^2.0
puli/repository Version ^1.0@beta
matthiasnoback/symfony-bundle-plugins Version ^1.1
ocramius/proxy-manager Version ^1.0
mongodb/mongodb Version ^1.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 mi/mongodb-migrations contains the following files

Loading the files please wait ....