What are all the disadvantages of creating module without composer.json?
I have created module without conposer.json and my module working good,
Module Structure : (Screenshot : https://snipboard.io/V7eor2.jpg)
What are all the disadvantages of creating module without composer.json?
Solved! Go to Solution.
@Vimal Kumar Thank you, and finally what is packaging module mean, selling to others?
Hello @Aveeva
for the following area, you must need composer.json file
1) when you want to install the module using json
2) if you want to add your module to https://packagist.org or some think like service
3) if you want to sell module via Magento
Hope it will help you.
Hi @Aveeva
Great, that you module is working fine.
Actually composer is used when you want to deploy your module using composer not manually copy paste folders.
for more info:
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/build/composer-integration.html
You can make a package of module using composer.
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/package/package_module.html
I hope it will help you!
@Vimal Kumar Magento 2.3 docs also not using composer.json that's what getting confusion https://devdocs.magento.com/videos/fundamentals/create-a-new-module/.
I can able to do enable and disable module using cli commands even without creating composer.json.
Hi @Aveeva
Module enable/disable will work as well without composer.json.
But when you need to packaging module then it is required. By packaging you can install your mudule using
composer require Module_Name
composer install as well.
for more info:
https://magento.stackexchange.com/a/190400
I hope it will help you!
@Vimal Kumar Thank you, and finally what is packaging module mean, selling to others?
Hello @Aveeva
for the following area, you must need composer.json file
1) when you want to install the module using json
2) if you want to add your module to https://packagist.org or some think like service
3) if you want to sell module via Magento
Hope it will help you.
@Sunil PatelAdded composer.json after created module is it possible to uninstall the module using composer? my module => https://github.com/ZusZus/simple-module/tree/master/app/code/Gta/Mymod