Im developing an extension and would want to use some composer extensions in it. So I have a composer.json file in app/code/Vendor/Extension/ path.
Do I simply run composer update in the extension directory? This will put the vendor directory into the extension right? Is there a way I can have magento pick up the composer.json of my extension when I run a update from root?
Also most importantly what is the best practice in this?
/path/to/magento/vendor
? Any required package for your extension should be located into arequire
directive see getcomposer.org/doc/04-schema.md#require. When you will docomposer.phar update
into magento root folder, the extension will be installed into the vendor folder and thanks to autoloader from composer, your own extension will get access to ithttps://github.com/diglin/Diglin_Username2
then push it to github and submit your repo on packagist. After that you can trigger this command on magento to install your extension via composer into the vendor folder:composer.phar require namespace/modulename
.namespace/modulename
= name of the extension in composer.jsonhttps://github.com/composer/satis
to create something similar to packagist but for your intern purpose. I didn't configured myself but it is possible to set access rights here getcomposer.org/doc/articles/…