PHPackages                             webgriffe/deployer-magento - 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/deployer-magento

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

webgriffe/deployer-magento
==========================

Deployer recipe for Magento project

2.5.4(4y ago)1125.0k2[1 issues](https://github.com/webgriffe/deployer-magento/issues)MITPHP

Since Nov 30Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (18)Used By (0)

Magento 1.x Deployer Recipe
===========================

[](#magento-1x-deployer-recipe)

Deployer recipe for Magento project. It requires Deployer greater or equal to version `5.0`.

Install
-------

[](#install)

Install it using Composer:

```
$ composer require --dev webgriffe/deployer-magento

```

Usage
-----

[](#usage)

Require the recipe in your `deploy.php`:

```
namespace Deployer;

require __DIR__ . '/vendor/webgriffe/deployer-magento/magento.php';

// Usual Deployer configuration here

// Set magento root directory inside release path (leave blank if Magento is in the root of the release path)
set('magento_root', 'magento');
// Set other Magento's specific config (see below)
```

Caution
-------

[](#caution)

Please, refer to the `magento.php` file to check the provided shared directories and files. Make sure that these don't conflict with your project. Even when you upgrade `webgriffe/deployer-magento` please check the shared stuff. We do not treat a different shared configuration as a BC break.

Configuration
-------------

[](#configuration)

This recipe provides the following Deployer parameters that you can set in your local `deploy.php` file:

- `media_pull_exclude_dirs`, default value `['css', 'css_secure', 'js']`: allows to set a list of subdirectories of the `media` folder that will be excluded from the `magento:media-pull` task.
- `setup-run-timeout`, default value `300`: allows to set the timeout for the `magento:setup-run` task which in some cases takes more time.
- `db_pull_strip_tables`, default value `['@stripped']`: allows to set an array of table names or groups which data will be stripped from the database dump generated with the `magento:db-pull` task. Table names or groups syntax follow the same rules of the `--strip` option of the `n98-magerun.phar db:dump`, see the [magerun](https://github.com/netz98/n98-magerun) documentation for more information.
- `magerun_remote`, default value `n98-magerun.phar`: allows to set the path of the magerun bin on the remote stage.
- `magerun_local`, default value `getenv('DEPLOYER_MAGERUN_LOCAL') ?: 'n98-magerun.phar'`: allows to set the path of the local magerun bin. As you can see the default value is taken from the `DEPLOYER_MAGERUN_LOCAL ` environment variable if it's set, otherwise `n98-magerun.phar` will be used.

Magento useful tasks
--------------------

[](#magento-useful-tasks)

This recipe provides Magento useful tasks:

- `magento:db-dump`: creates a gzipped database dump on the remote stage in the deploy user's home directory
- `magento:db-pull`: pulls database from the remote stage to local environment
- `magento:media-pull`: pulls Magento media from the remote stage to local environment
- `magento:set-copy-deploy-strategy`: sets the "copy" deploy strategy for [Magento Composer Installer](https://github.com/Cotya/magento-composer-installer) into the composer.json file.

License
-------

[](#license)

This library is under the MIT license. See the complete license in the LICENSE file.

Credits
-------

[](#credits)

Developed by [Webgriffe®](http://www.webgriffe.com/). Please, report to us any bug or suggestion by GitHub issues.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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.

###  Release Activity

Cadence

Every ~81 days

Recently: every ~208 days

Total

17

Last Release

1783d ago

Major Versions

1.0.0 → 2.0.02017-12-19

### 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 (26 commits)")[![LucaGallinari](https://avatars.githubusercontent.com/u/5822554?v=4)](https://github.com/LucaGallinari "LucaGallinari (10 commits)")[![fabianaromagnoli](https://avatars.githubusercontent.com/u/23638004?v=4)](https://github.com/fabianaromagnoli "fabianaromagnoli (2 commits)")[![azambon](https://avatars.githubusercontent.com/u/2920227?v=4)](https://github.com/azambon "azambon (1 commits)")

### Embed Badge

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

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

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/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)
