PHPackages                             webgriffe/magento-installer - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. webgriffe/magento-installer

AbandonedArchivedLibrary[DevOps &amp; Deployment](/categories/devops)

webgriffe/magento-installer
===========================

Composer's script handler to install Magento after a 'composer install/update'

42.2k5[1 issues](https://github.com/webgriffe/magento-installer/issues)1PHP

Since Feb 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/webgriffe/magento-installer)[ Packagist](https://packagist.org/packages/webgriffe/magento-installer)[ RSS](/packages/webgriffe-magento-installer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Magento Installer
=================

[](#magento-installer)

Composer's script handler to install Magento after a `composer install` / `composer update`.

Installation
------------

[](#installation)

Require this installer in your `composer.json` file:

```
"require": {
	…
    "webgriffe/magento-installer": "dev-master",
    …
}

```

And then execute the following command:

```
$ composer update webgriffe/magento-installer

```

Usage
-----

[](#usage)

Somewhere in your project create a YAML file like this:

```
parameters:
    locale: en_US
	timezone: America/Los_Angeles
    default_currency: USD
	db_host: localhost
	db_name: magento
	db_user: root
	db_pass: password
	url: http://magento.local/
	admin_firstname: John
	admin_lastname: Doe
	admin_email: john.doe@foo.it
	admin_username: admin
	admin_password: password

```

Then edit your `composer.json` to specify the path of the YAML file and to set the installer as a `post-install-cmd`/`post-update-cmd` script.

```
"scripts": {
    "post-install-cmd": [
        "Webgriffe\\MagentoInstaller\\ScriptHandler::installMagento"
    ],
    "post-update-cmd": [
        "Webgriffe\\MagentoInstaller\\ScriptHandler::installMagento"
    ]
}
…
"extra": {
	…
    "install": "path/to/your/file.yml",
    …
}

```

If something goes wrong during the installation you can fix your parameters in the YAML file and relaunch the installation through the command `composer run-script post-install-cmd`. The installation will be skipped automatically if the MySQL database already exists (it assumes that if there is the database, Magento is installed).

Running tests
-------------

[](#running-tests)

Tests must run in process isolation due to instance mocking of Mockery.

```
$ git clone …
$ composer install
$ phpunit --process-isolation

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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/eca104631fd7f6aff6d399ca16458c4d9814770756af0ecca22ffe2b1c5704d3?d=identicon)[mmenozzi](/maintainers/mmenozzi)

---

Top Contributors

[![mmenozzi](https://avatars.githubusercontent.com/u/1199914?v=4)](https://github.com/mmenozzi "mmenozzi (23 commits)")[![chepchepcirkus](https://avatars.githubusercontent.com/u/675743?v=4)](https://github.com/chepchepcirkus "chepchepcirkus (1 commits)")

### Embed Badge

![Health badge](/badges/webgriffe-magento-installer/health.svg)

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

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M206](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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