magedesigner/magento2-first-module

此软件包的最新版本(dev-master)没有可用的许可证信息。

安装: 5

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:magento2-module

dev-master 2019-04-23 06:40 UTC

This package is auto-updated.

Last update: 2024-09-23 19:16:37 UTC


README

这是一个作为composer子模块创建的Magento 2 - Hello World模块。

要求

  • Magento Composer Installer:将模块内容复制到app/code/文件夹下。要在根目录下安装它,请运行以下命令

      composer require magento/magento-composer-installer
    
  • 添加VCS仓库:以便composer可以找到模块。在您的composer.json中添加以下行

      "repositories": [
      {
          "type": "vcs",
          "url": "https://github.com/javilumbrales/magento2-first-module"
      }],
    

安装

  • 将模块添加到composer

      composer require lumbrales-software/magento2-first-module
    
  • app/etc/config.php中的'modules'部分添加新条目

      'LumbralesSoftware_HelloWorld' => 1,
    
  • 清除缓存

使用

    http://yourstore/helloworld/index/

请随时贡献,并联系我以解决任何问题。

您还可以在我们的www.thedeveloperworldisyours.com/php/create-magento-2-composer-module/上留下评论

版本

更新到版本1.0.1以实现稳定版本并展示通过composer和标签处理模块更新的方法。更新到版本1.0.2以测试通过composer和标签进行模块更新的方法