PHPackages                             mothership/mothership\_magerun - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mothership/mothership\_magerun

ActiveMagento-module[Utility &amp; Helpers](/categories/utility)

mothership/mothership\_magerun
==============================

Mothership Magerun Extensions for Magento

v1.3.11(8y ago)43562[6 issues](https://github.com/mothership-gmbh/magerun_mothership/issues)GPL-3.0PHPPHP &gt;=5.4

Since Jan 20Pushed 8y ago6 watchersCompare

[ Source](https://github.com/mothership-gmbh/magerun_mothership)[ Packagist](https://packagist.org/packages/mothership/mothership_magerun)[ Docs](https://www.mothership.de)[ RSS](/packages/mothership-mothership-magerun/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (10)Versions (50)Used By (0)

\#Mothership Magerun Addons

[![](https://camo.githubusercontent.com/5b427b3a4cac6ab1226bb860a9a4873c088f6fd11a79b4d98d34b89b97eedcff/68747470733a2f2f7472617669732d63692e6f72672f6d6f74686572736869702d676d62682f6d61676572756e5f6d6f74686572736869702e737667)](https://camo.githubusercontent.com/5b427b3a4cac6ab1226bb860a9a4873c088f6fd11a79b4d98d34b89b97eedcff/68747470733a2f2f7472617669732d63692e6f72672f6d6f74686572736869702d676d62682f6d61676572756e5f6d6f74686572736869702e737667)

[![Dependency Status](https://camo.githubusercontent.com/548c10aef80fff51e113c25e33bf4c99f3a056263a2b5e25bcecbce188d011b0/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536643730373839643731363935303033653633313138612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56d70789d71695003e63118a)[![Latest Stable Version](https://camo.githubusercontent.com/9871f97c3af4a8d1b3dc69cd51b9453a35aedf51e7d9b89aa562c80b2d03cfed/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74686572736869702f6d6f74686572736869705f6d61676572756e2f762f737461626c65)](https://packagist.org/packages/mothership/mothership_magerun)[![Total Downloads](https://camo.githubusercontent.com/db818f8c6d4da38e667df8aac3b5cab1989bbe4c5cb31709d668888b80851f41/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74686572736869702f6d6f74686572736869705f6d61676572756e2f646f776e6c6f616473)](https://packagist.org/packages/mothership/mothership_magerun)[![Latest Unstable Version](https://camo.githubusercontent.com/d09464ec8e55330f6463957034c473c84feed85d7f47b9856d63dd846e797ddc/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74686572736869702f6d6f74686572736869705f6d61676572756e2f762f756e737461626c65)](https://packagist.org/packages/mothership/mothership_magerun)[![License](https://camo.githubusercontent.com/6945b4b3ab44a55d79fc74d4059d208a1f632825d4a012492cf86bf9e243c657/68747470733a2f2f706f7365722e707567782e6f72672f6d6f74686572736869702f6d6f74686572736869705f6d61676572756e2f6c6963656e7365)](https://packagist.org/packages/mothership/mothership_magerun)

========================= This repository contains a list of extensions, which might be useful for your development workflow.

CommandDescriptionRequirements[mothership:base:environment:dump](#mothership_base_environment_dump)[mothership:base:environment:import](#mothership_base_environment_import)mothership:base:feed:exportmothership/feed\_exportmothership:base:fixtures:productCreates a yaml fixture file for ecomDev PHPunit testmothership:base:images:cleanRemove unused images from the catalog/product directorymothership:base:images:dummyFor each missing image, create a dummy fileCreate a dummy filemothership:base:images:missingIdentify missing imagesmothership:base:images:resizeResize imagesmothership:base:reports:observerstimesmothership:base:workflow:listmothership/state\_machine[mothership:base:workflow:render](#mothership_base_workflow_render)mothership/state\_machine, graphviz[mothership:base:workflow:run](#mothership_base_workflow_run)Runs a state machine defined by a workflowmothership/state\_machineInstallation
============

[](#installation)

There are currently three different ways to include the magerun-components. I will describe every method. Please check the offical [documentation](http://magerun.net/introducting-the-new-n98-magerun-module-system/) for further questions. The preferred method imho should be the composer way.

Method 1 - the easiest one
--------------------------

[](#method-1---the-easiest-one)

This method needs you to have a home folder where all the custom modules will be located.

- Execute the following snippet

```
mkdir -p ~/.n98-magerun/modules/

```

- Clone the repository or symlink it. I prefer the symlink way as all my repositories are checked out in one place but this is up to you. The following example will clone the directory directly.

```
cd ~/.n98-magerun/modules/
git clone https://github.com/mothership-gmbh/magerun_mothership.git

```

Method 2 - still easy, but more environment specific
----------------------------------------------------

[](#method-2---still-easy-but-more-environment-specific)

While there is one way to centralize all your modules i prefer to have environment specific modules.

- To achieve this, you just need to create a folder within your Magento project folder.

```
// replace MAGENTO_ROOT with your directory
mkdir -p MAGENTO_ROOT/lib/n98-magerun/modules

```

The next step is the same like before. Just clone and/or symlink the repository.

```
cd MAGENTO_ROOT/lib/n98-magerun/modules
git clone https://github.com/mothership-gmbh/magerun_mothership.git

```

Method 3 - composer.json
------------------------

[](#method-3---composerjson)

just add this require to your *composer.json*. Please check the latest tagged version by yourself.

```
"require":
{
	"mothership/mothership_magerun":""
}

```

Commands
========

[](#commands)

mothership:environment:dump
---------------------------------------------------------------------------------------

[](#mothershipenvironmentdump)

Dump all settings from the table `core_config_data` matching a given regular expression. Depends on a configuration file.

```
mothership:env:dump --

```

[read more ...](./doc/base_environment_dump.md)

mothership:environment:import
-------------------------------------------------------------------------------------------

[](#mothershipenvironmentimport)

Import the configuration settings by overwriting the existing configurations. There is one example file `settings.example.php`. Just copy the file as `settings.php` and customize the settings for your needs.

- File Structure

You need to have some files in the directory `Mothership\Environment\resource`. They should be named like `environment_anyname`. If there is more then one file, name it like your environments. Please define one file as a fallback.

[read more ...](./doc/base_environment_import.md)

mothership:images:create-dummy
------------------------------

[](#mothershipimagescreate-dummy)

This command will create an image file for each entry in the table `catalog_product_entity_media_gallery`. Just ensure, that you have one file called `dummy.jpg` in your `media` directory. This can be useful if you have to deal with large product data but do not want to download a gigazillion large directory.

For more fun, use the official Mothership Image.

[![Logo](https://camo.githubusercontent.com/52747ee13fedb2179562ad73173edb812426c3fb720ddb809b899531ac0e11f7/68747470733a2f2f666263646e2d70726f66696c652d612e616b616d616968642e6e65742f6870726f66696c652d616b2d786170312f762f74312e302d312f70313630783136302f313436313637375f3431333134373234323134353233365f313934353139323833335f6e2e706e673f6f683d6566393564326263363238613435383433306132346133633036646436366630266f653d3536383930303534265f5f6764615f5f3d313435363134333630365f6461363738323230396361643936316562353466396630323063363234373835)](https://camo.githubusercontent.com/52747ee13fedb2179562ad73173edb812426c3fb720ddb809b899531ac0e11f7/68747470733a2f2f666263646e2d70726f66696c652d612e616b616d616968642e6e65742f6870726f66696c652d616b2d786170312f762f74312e302d312f70313630783136302f313436313637375f3431333134373234323134353233365f313934353139323833335f6e2e706e673f6f683d6566393564326263363238613435383433306132346133633036646436366630266f653d3536383930303534265f5f6764615f5f3d313435363134333630365f6461363738323230396361643936316562353466396630323063363234373835)

mothership:images:resize
------------------------

[](#mothershipimagesresize)

Handy command, to minify the base-images. This will create a new directory named after the `--dir` parameter and create a smaller version of all existing images. Please be aware that in case you have a new image file with the same name, this command will not recognize that. In this case remove the existing file from the resized image directory and rerun the command

`magerun typehype:images:resize --dir=thumbnails --size=100`

mothership:reports:observerstimes
---------------------------------

[](#mothershipreportsobserverstimes)

This is a *magerun* command to create a *csv* reports to find all the events and relative observers called for each Magento page called in the browser during navigation.

[More doc](./doc/base_reports_readme.md)

```
magerun mothership:reports:observerstimes

```

mothership:workflow:render
-------------------------------------------------------------------------------------

[](#mothershipworkflowrender)

Super fancy graph generator! Instead of running our state machines, you can also render them for easier debugging.

The graph creation depends on [graphviz](www.graphviz.org/), so ensure that you have installed it first, so that you can run the `dot` command. Use `apt-get install graphviz` in debian environments.

```
magerun mothership:workflow:render --config=Demo.yaml

```

The created graph will look like this one. Check the [source file](./src/app/etc/mothership/workflows/Demo.yaml)

[![Logo](./src/app/etc/mothership/workflows/Demo.yaml.png)](./src/app/etc/mothership/workflows/Demo.yaml.png)

And yes, you can run this workflow exactly like displayed in the graph. Check the next command.

mothership:workflow:run
-------------------------------------------------------------------------------

[](#mothershipworkflowrun)

Run a workflow from the directory `/app/etc/mothership/workflows`. This feature is very powerful and is being used in a lot of scenarios with a lot of complexity. It basically depends on [Mothership State Machine](https://github.com/mothership-gmbh/state_machine) and is a helper to run a finite state machine in a Magento environment.

```
magerun mothership:workflow:run --config=yourworkflow.yaml
magerun mothership:workflow:run --config=yourworkflow.yaml --help
magerun mothership:workflow:run --config=yourworkflow.yaml --interactive
magerun mothership:workflow:run --config=yourworkflow.yaml --queue

```

In additition to the plain PHP state machine implementation, this command has the following features:

- Parses a new node in the workflow definition file.
- Interactive mode: Each option can be set with a dialog.
- Queue: Use the queue php-resque to run workflows in the background.

[More doc](./doc/base_workflow_run.md)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~13 days

Recently: every ~0 days

Total

44

Last Release

3164d ago

PHP version history (2 changes)v1.0.0.0PHP &gt;=5.3

v1.0.13PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ea5c2a7c0f4d9beeb077750260256b4e0836f74b4f194c4bc6a513381b61d9?d=identicon)[Mothership](/maintainers/Mothership)

---

Top Contributors

[![azngeek](https://avatars.githubusercontent.com/u/213429?v=4)](https://github.com/azngeek "azngeek (59 commits)")[![johannesmaximilian](https://avatars.githubusercontent.com/u/5476855?v=4)](https://github.com/johannesmaximilian "johannesmaximilian (2 commits)")[![andreasemer](https://avatars.githubusercontent.com/u/1199310?v=4)](https://github.com/andreasemer "andreasemer (1 commits)")[![flyzard](https://avatars.githubusercontent.com/u/2871707?v=4)](https://github.com/flyzard "flyzard (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mothership-mothership-magerun/health.svg)

```
[![Health](https://phpackages.com/badges/mothership-mothership-magerun/health.svg)](https://phpackages.com/packages/mothership-mothership-magerun)
```

###  Alternatives

[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[altis/local-server

Local Server module for Altis

18208.4k2](/packages/altis-local-server)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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