定制 dmitrijivanenko/hotrod-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dmitrijivanenko/hotrod-cli

Composer 安装命令:

composer require dmitrijivanenko/hotrod-cli

包简介

Magento 2 code generation cli tool

README 文档

README

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

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.

Features

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

Documentation

You'll find full documentation here.

Example

Lets review an example

vendor/bin/hotrod create:controller Dmiva_Test dmiva/testing/test

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 :

  • 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

To open the User Interface, run this command

vendor/bin/hotrod-ui

It will build the Angular app and run the basic build in php server on http://localhost:8008/.

Installation

You can install the package via composer:

composer require --dev dmitrijivanenko/hotrod-cli

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.

Licence

This project is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固