Why does new api module needs composer.json?Code migration install 1.9 to installData 2.0Problem with creating integration from the configCustom payment method not listed in checkout payment step in frontendWhy does Magento 2 composer.json require composer?Magento 2 : Cannot Use REST APIWhy to build apiFirst steps of creating API integration with Magento2.3Using Magento 2.2.7, do I need ece-tools?Magento 2.3 - How to Get product-salable-quantity using REST API?Magento 2 - Readiness check fails on Check Component Dependency
Theorems that impeded progress
Took a trip to a parallel universe, need help deciphering
How could indestructible materials be used in power generation?
I Accidentally Deleted a Stock Terminal Theme
Can one be a co-translator of a book, if he does not know the language that the book is translated into?
Can I use a neutral wire from another outlet to repair a broken neutral?
In Romance of the Three Kingdoms why do people still use bamboo sticks when papers are already invented?
What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?
Is "remove commented out code" correct English?
How to model explosives?
If human space travel is limited by the G force vulnerability, is there a way to counter G forces?
Today is the Center
Why do I get two different answers for this counting problem?
What killed these X2 caps?
Arrow those variables!
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Did Shadowfax go to Valinor?
Can a rocket refuel on Mars from water?
Blender 2.8 I can't see vertices, edges or faces in edit mode
How can I make my BBEG immortal short of making them a Lich or Vampire?
Is it inappropriate for a student to attend their mentor's dissertation defense?
How do conventional missiles fly?
Why doesn't H₄O²⁺ exist?
90's TV series where a boy goes to another dimension through portal near power lines
Why does new api module needs composer.json?
Code migration install 1.9 to installData 2.0Problem with creating integration from the configCustom payment method not listed in checkout payment step in frontendWhy does Magento 2 composer.json require composer?Magento 2 : Cannot Use REST APIWhy to build apiFirst steps of creating API integration with Magento2.3Using Magento 2.2.7, do I need ece-tools?Magento 2.3 - How to Get product-salable-quantity using REST API?Magento 2 - Readiness check fails on Check Component Dependency
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I followed alanstorm's magento 2 guides and now I am
in Magento world for a little more than a month.
https://alanstorm.com/category/magento-2/#magento-2-mvc
I've come across this tutorial about creating rest-api
https://webkul.com/blog/magento2-custom-rest-api/
it says to make a composer.json and I don't actually know why
I need this or where to use this.
I didn't make composer.json file to make
non-api modules and it worked fine.
magento2 api
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I followed alanstorm's magento 2 guides and now I am
in Magento world for a little more than a month.
https://alanstorm.com/category/magento-2/#magento-2-mvc
I've come across this tutorial about creating rest-api
https://webkul.com/blog/magento2-custom-rest-api/
it says to make a composer.json and I don't actually know why
I need this or where to use this.
I didn't make composer.json file to make
non-api modules and it worked fine.
magento2 api
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I followed alanstorm's magento 2 guides and now I am
in Magento world for a little more than a month.
https://alanstorm.com/category/magento-2/#magento-2-mvc
I've come across this tutorial about creating rest-api
https://webkul.com/blog/magento2-custom-rest-api/
it says to make a composer.json and I don't actually know why
I need this or where to use this.
I didn't make composer.json file to make
non-api modules and it worked fine.
magento2 api
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I followed alanstorm's magento 2 guides and now I am
in Magento world for a little more than a month.
https://alanstorm.com/category/magento-2/#magento-2-mvc
I've come across this tutorial about creating rest-api
https://webkul.com/blog/magento2-custom-rest-api/
it says to make a composer.json and I don't actually know why
I need this or where to use this.
I didn't make composer.json file to make
non-api modules and it worked fine.
magento2 api
magento2 api
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago
Jinmo ChongJinmo Chong
83
83
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Jinmo Chong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Basically, composer.json is included in your custom module to define metadata and declare external and third-party dependencies that it needs in order for it to function. As Magento 2 uses composer to package components.
However, your custom module still works if you are using it directly in your Magento webshop(like you are installing it manually) but if you plan or want to submit it to the Magento Marketplace you should include the composer.json file.
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
add a comment |
While a Magento 2 module/extension can function without it, the main purpose of the composer.json file is to let composer manage that module/extension.
The existence of composer.json allows:
- installing the module through composer
- composer to figure out the module's/extension's dependencies
- the upgrade of the module through composer
Also, form what I've read MagentoFrameworkModulePackageInfo is also related to the existence of the composer.json file, so you might want to take a look at that, too.
Cheers,
Radu
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268843%2fwhy-does-new-api-module-needs-composer-json%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Basically, composer.json is included in your custom module to define metadata and declare external and third-party dependencies that it needs in order for it to function. As Magento 2 uses composer to package components.
However, your custom module still works if you are using it directly in your Magento webshop(like you are installing it manually) but if you plan or want to submit it to the Magento Marketplace you should include the composer.json file.
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
add a comment |
Basically, composer.json is included in your custom module to define metadata and declare external and third-party dependencies that it needs in order for it to function. As Magento 2 uses composer to package components.
However, your custom module still works if you are using it directly in your Magento webshop(like you are installing it manually) but if you plan or want to submit it to the Magento Marketplace you should include the composer.json file.
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
add a comment |
Basically, composer.json is included in your custom module to define metadata and declare external and third-party dependencies that it needs in order for it to function. As Magento 2 uses composer to package components.
However, your custom module still works if you are using it directly in your Magento webshop(like you are installing it manually) but if you plan or want to submit it to the Magento Marketplace you should include the composer.json file.
Basically, composer.json is included in your custom module to define metadata and declare external and third-party dependencies that it needs in order for it to function. As Magento 2 uses composer to package components.
However, your custom module still works if you are using it directly in your Magento webshop(like you are installing it manually) but if you plan or want to submit it to the Magento Marketplace you should include the composer.json file.
answered 2 hours ago
magefmsmagefms
2,3772426
2,3772426
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
add a comment |
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
1
1
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
Thanks, learned a new thing.
– Jinmo Chong
2 hours ago
add a comment |
While a Magento 2 module/extension can function without it, the main purpose of the composer.json file is to let composer manage that module/extension.
The existence of composer.json allows:
- installing the module through composer
- composer to figure out the module's/extension's dependencies
- the upgrade of the module through composer
Also, form what I've read MagentoFrameworkModulePackageInfo is also related to the existence of the composer.json file, so you might want to take a look at that, too.
Cheers,
Radu
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
add a comment |
While a Magento 2 module/extension can function without it, the main purpose of the composer.json file is to let composer manage that module/extension.
The existence of composer.json allows:
- installing the module through composer
- composer to figure out the module's/extension's dependencies
- the upgrade of the module through composer
Also, form what I've read MagentoFrameworkModulePackageInfo is also related to the existence of the composer.json file, so you might want to take a look at that, too.
Cheers,
Radu
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
add a comment |
While a Magento 2 module/extension can function without it, the main purpose of the composer.json file is to let composer manage that module/extension.
The existence of composer.json allows:
- installing the module through composer
- composer to figure out the module's/extension's dependencies
- the upgrade of the module through composer
Also, form what I've read MagentoFrameworkModulePackageInfo is also related to the existence of the composer.json file, so you might want to take a look at that, too.
Cheers,
Radu
While a Magento 2 module/extension can function without it, the main purpose of the composer.json file is to let composer manage that module/extension.
The existence of composer.json allows:
- installing the module through composer
- composer to figure out the module's/extension's dependencies
- the upgrade of the module through composer
Also, form what I've read MagentoFrameworkModulePackageInfo is also related to the existence of the composer.json file, so you might want to take a look at that, too.
Cheers,
Radu
answered 2 hours ago
RaduRadu
1318
1318
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
add a comment |
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
Thank you Raud!
– Jinmo Chong
2 hours ago
Thank you Raud!
– Jinmo Chong
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
It's Radu :) you're welcome! @magefms beat me to it :P
– Radu
2 hours ago
add a comment |
Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.
Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.
Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.
Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268843%2fwhy-does-new-api-module-needs-composer-json%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown