irs/magento-initializer

Framework for Magento initialization and state recovery.

dev-master 2014-12-09 10:56 UTC

This package is auto-updated.

Last update: 2024-04-22 19:51:47 UTC


README

Build Status

This framework provides API for Magento installation, initialization and state recovery. Framework was tested on EE 1.11 and should work on all versions older than 1.9.

Installation

To install the framework with Composer add following lines into you composer.json:

{
    "require": {
        "irs/magento-initializer": "dev-master"
    }
}

Then run composer install.

API description

The framework defines four core interfaces: InstallerInterface, InitializerInterface, StateInterface, DbInterface and four implementations of these interfaces.

GenericInstaller

Generic installer initializes Magento config, var, media structures in target directory; creates index.php that runs Magento from source directory with created config, var, media; adds test database to configuration and installs Magento into it.

Credentias to admin panel will be admin : 123123qa.

GenericInitializer

Is a class for changing Magento run parameters and state managenet. It can be used for:

  • setting store and scope into index.php generated with GenericInstaller;
  • saving current Magento's state into state file;
  • restoring Magento state from state file.

The initializer uses DbInterface to create database dump and restore database from dump. Now only MySQL dumper is implemented; it uses mysqldump utility for dump creation and mysql for restoring.

GenericState

This class is used by GenericInitializer to save state into file. Saves databse dump, media and var directories as a Zip archive.