cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 - What is mean composer.json on Module Development?

SOLVED

Magento 2.3 - What is mean composer.json on Module Development?

I have created module without conposer.json and my module working good,

Module Structure : (Screenshot : https://snipboard.io/V7eor2.jpg)

 

mod_str.png

 

What are all the disadvantages of creating module without composer.json?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Magento 2.3 - What is mean composer.json on Module Development?

@Vimal Kumar  Thank you, and finally what is packaging module mean, selling to others?

View solution in original post

Re: Magento 2.3 - What is mean composer.json on Module Development?

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

View solution in original post

6 REPLIES 6

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!

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.

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!

Re: Magento 2.3 - What is mean composer.json on Module Development?

@Vimal Kumar  Thank you, and finally what is packaging module mean, selling to others?

Re: Magento 2.3 - What is mean composer.json on Module Development?

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

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