Download the PHP package dof-dss/nidirect-migrations without Composer

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

CircleCI

IF YOU UPDATE A MIGRATION CONFIGURATION PLEASE ENSURE YOU EXPORT THE CONFIG TO THE DRUPAL/CONFIG/SYNC DIRECTORY AND COMMIT IT

Migrations

Running migrations

  1. If you need to remove existing content on the site, use the command lando drush mig-purge
  2. Ensure the Drupal migrate modules (migrate, migrate_plus, migrate_tools) are enabled.
  3. perform a 'git pull' to ensure you have the latest commits.
  4. Enable the required NIDirect migration modules.
  5. Import the NIDirect Drupal 7 database into the Lando drupal7db database.
  6. Add the NIDirect Drupal 7 files to /imports/files/sites/default/files/
  7. Ensure 'Migrate NIDirect Utils' is enabled and run lando drush mig-prep to preform site-uuid sync and pre-migration tasks on the D7 database.
  8. Import the site configuration using 'drush cim'.
  9. Use lando mist to display the migration status
  10. Use lando miip --group=<group name> or lando miip <individual migration>

Migration order

Items in italics typically will not be run on production.

Run lando miip --group=<group name> with the following:

then run the following individual migrations:

Running tests

Automated testing is broken into different categories: static analysis, unit and functional tests.

Static analysis

The project uses PHPCS to validate all custom code against Drupal.org coding standards; including migrate modules and custom themes.

For convenience, it can be invoked for local development using Lando: lando phpcs

Unit tests

Any custom code that implements unit tests will be checked when using PHPUnit.

For local work, invoke it with lando phpunit. This acts as a local tool wrapper for the drupal8/phpcs.sh script in order to simplify usage.

Functional tests

Migrations and key user activities and journeys are tested using a headless Chromedriver browser running in a local container. Drupal Core has adopted nightwatch.js as their functional testing tool. We use the same configuration file as Drupal Core, and can run any nightwatch.js tests (core, contrib or custom) by specifying a test suite tags parameter, eg:

lando nightwatch --skiptags core: run all tests except those tagged with core. lando nightwatch --tag nidirect-migrate: run all tests tagged with nidirect-migrate. lando nightwatch /path/to/your/test/file.js: run a specific set of tests in a single file.

Environmental variables

Some tests use environmental variables to prevent setting potentially sensitive values directly into test code. How these are set will vary from one environment to another, but in the case of local development using Lando you will find them under:

/config/drupal.env

If you need to change this file, you will also need to rebuild your local appserver service: lando rebuild -s appserver

NightWatchJS tests

Import the included 'D7_Migrate_View' View into existing Drupal 7 NI Direct site and update the TEST_D7_URL env var to the URL of the site. This view contains XML data export displays for most of the migrated entities with paths specified as /migrate/ (see 'before' hook in each test for full path). Each display will return a random entity but this can be overridden in the test to return a specific node by appending an ID to the end of the URL e.g. /migrate/recipe/5012


All versions of nidirect-migrations with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.6
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 dof-dss/nidirect-migrations contains the following files

Loading the files please wait ....