jigar / module-helloworld
Sample module format to register your Magento 2 module as a Composer package with Packagist.
Package info
github.com/jigarkkarangiya/module-helloworld
Type:magento2-module
pkg:composer/jigar/module-helloworld
1.0.3
2024-01-01 14:06 UTC
README
``jigar/module-helloworld``
Main Functionalities
Sample module format to register your Magento 2 module as a Composer package with Packagist.
Installation
* = in production please use the --keep-generated option
Type 1: Zip file
- Unzip the zip file in
app/code/Jigar - Enable the module by running
php bin/magento module:enable Jigar_HelloWorld - Apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Type 2: Composer
- Make the module available in a composer repository for example:
- private repository
repo.magento.com - public repository
packagist.org - public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/ - Install the module composer by running
composer require jigar/module-helloworld - enable the module by running
php bin/magento module:enable Jigar_HelloWorld - apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush