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;








1















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.










share|improve this question







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.


























    1















    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.










    share|improve this question







    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.






















      1












      1








      1








      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.










      share|improve this question







      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






      share|improve this question







      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.











      share|improve this question







      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.









      share|improve this question




      share|improve this question






      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.




















          2 Answers
          2






          active

          oldest

          votes


















          0














          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.






          share|improve this answer


















          • 1





            Thanks, learned a new thing.

            – Jinmo Chong
            2 hours ago


















          0














          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






          share|improve this answer























          • Thank you Raud!

            – Jinmo Chong
            2 hours ago











          • It's Radu :) you're welcome! @magefms beat me to it :P

            – Radu
            2 hours ago











          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.









          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer


















          • 1





            Thanks, learned a new thing.

            – Jinmo Chong
            2 hours ago















          0














          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.






          share|improve this answer


















          • 1





            Thanks, learned a new thing.

            – Jinmo Chong
            2 hours ago













          0












          0








          0







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          magefmsmagefms

          2,3772426




          2,3772426







          • 1





            Thanks, learned a new thing.

            – Jinmo Chong
            2 hours ago












          • 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













          0














          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






          share|improve this answer























          • Thank you Raud!

            – Jinmo Chong
            2 hours ago











          • It's Radu :) you're welcome! @magefms beat me to it :P

            – Radu
            2 hours ago















          0














          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






          share|improve this answer























          • Thank you Raud!

            – Jinmo Chong
            2 hours ago











          • It's Radu :) you're welcome! @magefms beat me to it :P

            – Radu
            2 hours ago













          0












          0








          0







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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










          Jinmo Chong is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

          Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

          Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»