Skip to content

irs/magento-initializer

Repository files navigation

Magento initializer

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.

About

Magento initialization and state recovery framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages