PHPackages                             zero1/magento-dev - 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. zero1/magento-dev

ActiveLibrary

zero1/magento-dev
=================

2.1.3(5mo ago)14381[1 PRs](https://github.com/zero1limited/magento2-developer-utils/pulls)GPL-3.0-or-laterPHP

Since Nov 23Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/zero1limited/magento2-developer-utils)[ Packagist](https://packagist.org/packages/zero1/magento-dev)[ RSS](/packages/zero1-magento-dev/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (18)Used By (0)

Magento 2 Developer Cli
=======================

[](#magento-2-developer-cli)

This project takes inspiration from the Laravel `artisan make` commands. This is very much a work in progress, any feedback or contributes are welcome.

Features
--------

[](#features)

- [Create patch for vendor files](#vendor-patches)
- [Create a module](#module-creation)
- [Make CLI Command](#make-cli-command)
- [Make Controller](#make-controller)
- [Make Observer](#make-observer)

### TODO

[](#todo)

- refactor routes logic to OOP (like observer logic)
- refactor cli command logic to OOP (like observer logic)

### Vendor Patches

[](#vendor-patches)

The ability to generate patches from the vendor directory. For example if you have had to craft a fix for a module and the vendor hasn't supplied a patch yet.

Summary

```
./vendor/bin/magentodev vendor:diff
```

Detail / patch generation

```
./vendor/bin/magentodev vendor:diff --package=magento/framework
```

### Module Creation

[](#module-creation)

Summary

```
./vendor/bin/magentodev module:make
```

### Make CLI Command

[](#make-cli-command)

```
Description:
  Add a CLI command to an existing extension.

Usage:
  make:cli-command [options] [--] []

Arguments:
  --force                                        If supplied and class/file exists,  it will be overwritten [default: false]

Options:
      --name=NAME                                Name of the module (Magento module name, MyCompany_MyModule)
      --command-class-name[=COMMAND-CLASS-NAME]  Name of the class for the command (MyCommand)
      --command-signature[=COMMAND-SIGNATURE]    The signature of the command. (defaults to example:command)
      --command-help[=COMMAND-HELP]              The help/description of the command (default "")
  -h, --help                                     Display this help message
  -q, --quiet                                    Do not output any message
  -V, --version                                  Display this application version
      --ansi                                     Force ANSI output
      --no-ansi                                  Disable ANSI output
  -n, --no-interaction                           Do not ask any interactive question
  -v|vv|vvv, --verbose                           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

Example

```
./vendor/bin/magentodev make:cli-command
```

### Make Controller

[](#make-controller)

```
Description:
  Create a controller

Usage:
  make:controller [options]

Options:
      --name=NAME                    Name of the module (Magento module name, MyCompany_MyModule)
      --area=AREA                    Area (frontend, adminhtml, rest-api)
      --frontname=FRONTNAME          Front name of the controller (e.g https://www.example.com/FRONTNAME/controller/action)
      --controller=CONTROLLER        Controller (e.g https://www.example.com/frontname/CONTROLLER/action)
      --action=ACTION                Action (e.g https://www.example.com/frontname/controller/ACTION)
      --response-type=RESPONSE-TYPE  Response type (html, json, txt)
      --http-method=HTTP-METHOD      HTTP Method (GET, POST)
      --force                        Overwrite files without asking.
  -h, --help                         Display help for the given command. When no command is given display help for the list command
  -q, --quiet                        Do not output any message
  -V, --version                      Display this application version
      --ansi|--no-ansi               Force (or disable --no-ansi) ANSI output
  -n, --no-interaction               Do not ask any interactive question
  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  This command allows you to create a controller within a module
```

### Make Observer

[](#make-observer)

```
Description:
  Create an observer

Usage:
  make:observer [options]

Options:
      --name=NAME       Name of the module (Magento module name, MyCompany_MyModule)
      --area=AREA       Area (global, adminhtml, crontab, frontend, graphql, webapi_rest, webapi_soap), provide comma separated list for multiple.
      --event=EVENT     Event name to listen to
      --force           Overwrite files without asking.
  -h, --help            Display help for the given command. When no command is given display help for the list command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  This command allows you to create an observer for a specific event within a module
```

Planned Features
----------------

[](#planned-features)

- Templates for modules
- Nicer interface for managing submodules
- Create plugins / components / models automatically.

Know Issues
-----------

[](#know-issues)

- at present comments are lost in xml files when the file is updated.

Deving on module
----------------

[](#deving-on-module)

1. `git submodule add --name Zero1_MagentoDeveloperUtils --branch dev git@github.com:zero1limited/magento2-developer-utils.git extensions/zero1/magento2-developer-utils`
2.

```
"zero1-dev-extensions": {
      "type": "path",
      "url": "extensions/zero1/magento2-developer-utils",
      "options": {
          "symlink": true
      }
  }
```

3. `composer require --dev zero1/magento-dev:@dev`

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.9% 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 ~61 days

Recently: every ~52 days

Total

13

Last Release

172d ago

Major Versions

1.0.0 → 2.0.02023-12-11

1.0.1 → 2.1.02024-06-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b08c35b603becab270a53db6ec969f48be0c353a20ee2985bb1a8ec5a9b64e9?d=identicon)[zero1](/maintainers/zero1)

---

Top Contributors

[![adamzero1](https://avatars.githubusercontent.com/u/6369163?v=4)](https://github.com/adamzero1 "adamzero1 (29 commits)")[![bradley-zero1](https://avatars.githubusercontent.com/u/183477695?v=4)](https://github.com/bradley-zero1 "bradley-zero1 (3 commits)")[![adam-crossland](https://avatars.githubusercontent.com/u/8753076?v=4)](https://github.com/adam-crossland "adam-crossland (1 commits)")

---

Tags

magentomagento 2

### Embed Badge

![Health badge](/badges/zero1-magento-dev/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[drupal/core

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

19462.3M1.3k](/packages/drupal-core)

PHPackages © 2026

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