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

AbandonedLibrary[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 ago3 watchersCompare

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

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 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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

3878d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1583474?v=4)[delegator](/maintainers/delegator)[@delegator](https://github.com/delegator)

---

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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[friendsoftypo3/content-blocks

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

103519.9k53](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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