Skip to content
Hello World Magento 2 Sample Module using a composer package.
Branch: master
Clone or download


This is a Magento 2 - Hello World module created as a composer submodule.


  • Magento Composer Installer: To copy the module contents under app/code/ folder. In order to install it run the below command on the root directory:

      composer require magento/magento-composer-installer
  • Add the VCS repository: So that composer can find the module. Add the following lines in your composer.json

      "repositories": [
          "type": "vcs",
          "url": ""


  • Add the module to composer:

      composer require lumbrales-software/magento2-first-module
  • Add the new entry in app/etc/config.php, under the 'modules' section:

      'LumbralesSoftware_HelloWorld' => 1,
  • Clear cache



Feel free to contribute, and contact me for any issues.

You can also drop us a comment at


Updated to version 1.0.1 to achieve a stable version and demonstrate the handling of module updates via composer and tags Updated to version 1.0.2 to test module update via composer and tags

You can’t perform that action at this time.