What are all the disadvantages of creating module without composer.json?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have created module without conposer.json and my module working good,
Module Structure : (Screenshot : https://snipboard.io/V7eor2.jpg)
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Vimal Kumar Thank you, and finally what is packaging module mean, selling to others?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.3 - What is mean composer.json on Module Development?
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.3 - What is mean composer.json on Module Development?
@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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.3 - What is mean composer.json on Module Development?
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!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Vimal Kumar Thank you, and finally what is packaging module mean, selling to others?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.3 - What is mean composer.json on Module Development?
@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