{"id":13519236,"url":"https://github.com/staempfli/magento2-code-generator","last_synced_at":"2026-01-16T04:57:01.698Z","repository":{"id":53076022,"uuid":"64841475","full_name":"staempfli/magento2-code-generator","owner":"staempfli","description":"Code generator for Magento 2","archived":false,"fork":false,"pushed_at":"2021-04-07T21:29:45.000Z","size":25856,"stargazers_count":250,"open_issues_count":7,"forks_count":58,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-11-01T00:12:13.773Z","etag":null,"topics":["magento2"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/staempfli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-03T11:37:58.000Z","updated_at":"2024-09-04T06:26:58.000Z","dependencies_parsed_at":"2022-08-24T14:51:48.402Z","dependency_job_id":null,"html_url":"https://github.com/staempfli/magento2-code-generator","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staempfli%2Fmagento2-code-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staempfli%2Fmagento2-code-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staempfli%2Fmagento2-code-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staempfli%2Fmagento2-code-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staempfli","download_url":"https://codeload.github.com/staempfli/magento2-code-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246469215,"owners_count":20782691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magento2"],"created_at":"2024-08-01T05:01:56.172Z","updated_at":"2026-01-16T04:57:01.692Z","avatar_url":"https://github.com/staempfli.png","language":"PHP","funding_links":[],"categories":["PHP","Tools"],"sub_categories":[],"readme":"# Magento 2 Code Generator Tool\n[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](http://www.repostatus.org/badges/latest/abandoned.svg)](http://www.repostatus.org/#abandoned)\n[![License](https://img.shields.io/packagist/l/staempfli/magento2-code-generator.svg)](https://packagist.org/packages/staempfli/magento2-code-generator)\n[![Version](https://img.shields.io/packagist/vpre/staempfli/magento2-code-generator.svg)](https://packagist.org/packages/staempfli/magento2-code-generator)\n[![Code Climate](https://img.shields.io/codeclimate/github/staempfli/magento2-code-generator.svg)](https://codeclimate.com/github/staempfli/magento2-module-spreadsheet/)\n[![Total Downloads](https://img.shields.io/github/downloads/staempfli/magento2-code-generator/total.svg)](https://packagist.org/packages/staempfli/magento2-code-generator)\n\n## Installation\n\n### Option1: Downloading .phar\n\n```\nwget https://github.com/staempfli/magento2-code-generator/releases/download/\u003cversion\u003e/mg2-codegen.phar\nchmod +x ./mg2-codegen.phar\n# use the command globally on your system\nsudo mv ./mg2-codegen.phar /usr/local/bin/mg2-codegen\n```\n\n### Option2: Using Composer\n\nInstall globally on your system with the following command:\n\n```\ncomposer global require \"staempfli/magento2-code-generator\"\n```\n\nJust make sure you have the composer `bin` dir in your `$PATH`. The default value is `~/.composer/vendor/bin/`\n\nNote: if you have dependency problems with other projects installed globally, we recommend you to use [consolidation/cgr](https://github.com/consolidation/cgr)\n\n## Usage\n\n0. List all templates: `mg2-codegen template:list`\n\n0. Generate template: `mg2-codegen template:generate \u003ctemplate\u003e`\n\n**NOTE**:\n    \n* `template:generate` command must be executed on the module root folder where the `registration.php` file is.\nYou can also use option `--root-dir` to specify this path, if you execute it from a different location.\n\n* When creating a new `module`, you must create first the module parent folder and execute the command from there.\n\n## Demo\n\n![Video Demo](docs/img/video-demo.gif)\n\nYou can also watch a more detailed video demos on Youtube:\n\n* [Create a CRUD EAV Module in just 5 minutes](https://www.youtube.com/watch?v=f8qBnOIRIs4)\n* [Playlist Tutorials](https://www.youtube.com/playlist?list=PLBt8dizedSZCxuqK41vG01_MngJQPRuMj)\n\n## Available Templates\n\n```\nFeatured\n  ajaxHtml\n  consoleCommand\n  crudEAV\n  crudEAVWithFile\n  frontController\n  requireJs\n  logger\n  widget\n\nMore Templates\n  ajaxJson\n  ajaxRestApi\n  blockHtml\n  crud\n  crudEAVWithMultipleFiles\n  customConfigXml\n  customDBConnection\n  email\n  emailFormRequest\n  fileEAVAttribute\n  fileEAVMultiple\n  fileModel\n  fileProcessor\n  fotoramaSlider\n  language\n  model\n  module\n```\n\n## Create new Templates\n    \n### Clone and Install Project\n \nFor that you cannot use the `.phar` binary, so you need to install the project:\n\n* [Clone and Install](docs/clone-install.md)\n    \n### Contribute with new Templates\n\n* If you want to contribute with new templates, just follow this manual:\n\n    0. [How to create templates](docs/createTemplates.md)\n    \n### Private Templates\n\nIf current templates do not fill your needs, you can easily create your own templates. Just follow the manual:\n\n* [How to create private templates](docs/privateTemplates.md)\n    \n## Prerequisites\n\n- PHP \u003e= 5.6.*\n\n## Developers\n\n* [Juan Alonso](https://github.com/jalogut)\n\nLicence\n-------\n* **Software tool:** free software under the terms of [GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0)\n* **Generated code:** free to use, copy, modify or distribute under the terms of the [Free Public License 1.0.0](https://opensource.org/licenses/FPL-1.0.0)\n\nCopyright\n---------\n(c) 2016 Staempfli AG\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaempfli%2Fmagento2-code-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaempfli%2Fmagento2-code-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaempfli%2Fmagento2-code-generator/lists"}