PHPackages                             delegator/magegen - 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. delegator/magegen

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

delegator/magegen
=================

Build system for Magento extensions.

0.2.0(10y ago)03.4kApache-2.0PHPPHP &gt;=5.3.0

Since Apr 29Pushed 10y ago5 watchersCompare

[ Source](https://github.com/delegator/magegen)[ Packagist](https://packagist.org/packages/delegator/magegen)[ RSS](/packages/delegator-magegen/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

Magegen
=======

[](#magegen)

Magegen is a build system for Magento extensions.

We couldn't found a simple way to build Magento extensions, so we made our own. This tool works well with (and requires) `modman`. Learn more about `modman`[here](https://github.com/colinmollenhour/modman). Your extensions modman file is parsed to create the directory and file listing for your package.xml.

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

[](#installation)

We install this tool as a composer dependency in our extensions.

```
{
    "require-dev": {
        "delegator/magegen": "*"
    }
}
```

Usage
-----

[](#usage)

Before you can use `magegen`, you should have a working `.modman` directory with a project deployed. In your project's repo directory, add the `magegen`dependency and update composer with `composer update`.

`magegen` requires that you have a correct `modman` file AND a package.template.xml file.

To generate a package.template.xml file, run `vendor/bin/magegen init`.

Make sure you edit the package.template.xml file to match your extension's information. Leave the following nodes empty, `magegen` will fill them in when building your extension:

- date
- time
- contents

When you are ready to build your extension (generate a .tgz file), navigate to the root of your modman repo directory and run `vendor/bin/magegen build`

Hooks
-----

[](#hooks)

For some projects, you may need to compile assets or move files before building. To accommodate this, a simple hook system executes your code for the following events.

Hook NameWhen the hook is executed`pre_build`Before the 'build' command executes`post_build`After the 'build' command executes`pre_check`Before the 'check' command executes`post_check`After the 'check' command executes`pre_clean`Before the 'clean' command executes`post_clean`After the 'clean' command executes`pre_init`Before the 'init' command executes`post_init`After the 'init' command executesTo execute your code for each of these hooks, create a directory at `magegen/[hook_name]/`. In that directory, add PHP files that will be executed as the hook fires.

Contributing
------------

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

License
-------

[](#license)

Refer to [LICENSE.md](LICENSE.md) for license information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~41 days

Recently: every ~51 days

Total

6

Last Release

3832d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/319b151b6d1af890a1f518d1c1e03dc4583e3b438a916969f89ffe7fe60185bf?d=identicon)[t-richards](/maintainers/t-richards)

---

Top Contributors

[![t-richards](https://avatars.githubusercontent.com/u/3905798?v=4)](https://github.com/t-richards "t-richards (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/delegator-magegen/health.svg)

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

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

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