2017 © Pedro Peláez
 

library hotrod-cli

Magento 2 code generation cli tool

image

dmitrijivanenko/hotrod-cli

Magento 2 code generation cli tool

  • Friday, July 13, 2018
  • by dmitrijivanenko
  • Repository
  • 1 Watchers
  • 10 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 40 % Grown

The README.md

, (*1)

Scrutinizer Code Quality Build Status codecov Join the chat at https://gitter.im/hotrod-cli/Lobby , (*2)

This package helps you generate Magento 2 code using a clean commandline tool. All classes, templates, layouts and etc. can be dynamically generated and put together., (*3)

Features

  • Generates different kind of magento 2 module components
  • has a build in UI
  • Easy to start using

, (*4)

Documentation

You'll find full documentation here., (*5)

Example

Lets review an example, (*6)

bash vendor/bin/hotrod create:controller Dmiva_Test dmiva/testing/test, (*7)

This line tries to create a controller for the route dmiva/testing/test in Dmiva_Test namespace. Magically it creates for You a module Dmiva_Test if it is not exists and generates files :, (*8)

  • app/code/Dmiva/Test/registration.php
  • app/code/Dmiva/Test/etc/module.xml
  • app/code/Dmiva/Test/etc/frontend/routes.xml
  • app/code/Dmiva/Test/view/frontend/layout/dmiva_testing_test.xml
  • app/code/Dmiva/Test/Controller/Testing/Test.php
  • app/code/Dmiva/Test/Block/Testing.php
  • app/code/Dmiva/Test/view/frontend/templates/test.phtml, (*9)

    To open the User Interface, run this command, (*10)

    bash vendor/bin/hotrod-ui, (*11)

    It will build the Angular app and run the basic build in php server on http://localhost:8008/., (*12)

Installation

You can install the package via composer:, (*13)

bash composer require --dev dmitrijivanenko/hotrod-cli, (*14)

Contributing

Help is very welcomed. We accept contributions via Pull Requests on Github. Please read and understand the contribution guide before creating an issue or pull request., (*15)

Licence

This project is open-sourced software licensed under the MIT license., (*16)

The Versions