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.
Please rate this library. Is it a good library?
Informations about the package mongodb-migrations
MongoDB Migrations
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - 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
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
The package mi/mongodb-migrations contains the following files
Loading the files please wait ....