PHPackages                             irs/magento-initializer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. irs/magento-initializer

ActiveLibrary[Framework](/categories/framework)

irs/magento-initializer
=======================

Framework for Magento initialization and state recovery.

1691PHP

Since Dec 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/irs/magento-initializer)[ Packagist](https://packagist.org/packages/irs/magento-initializer)[ RSS](/packages/irs-magento-initializer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Magento initializer
===================

[](#magento-initializer)

[![Build Status](https://camo.githubusercontent.com/a38418e682fc99850adb863a5bbbbfa1d3813507720d8164f7bd4b05d81a1631/68747470733a2f2f7472617669732d63692e6f72672f6972732f6d6167656e746f2d696e697469616c697a65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/irs/magento-initializer)

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
------------

[](#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
---------------

[](#api-description)

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

### GenericInstaller

[](#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

[](#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

[](#genericstate)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2ec8559d47c4108ceebbe9d794401e2d7685dadea0c0bbf15fa4f249ca5470a?d=identicon)[irs](/maintainers/irs)

---

Top Contributors

[![irs](https://avatars.githubusercontent.com/u/1466346?v=4)](https://github.com/irs "irs (10 commits)")

### Embed Badge

![Health badge](/badges/irs-magento-initializer/health.svg)

```
[![Health](https://phpackages.com/badges/irs-magento-initializer/health.svg)](https://phpackages.com/packages/irs-magento-initializer)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
