Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active September 12, 2024 13:44
Show Gist options
  • Save DominicWatts/d08c98629fe77e69eea1f2d604bf16f6 to your computer and use it in GitHub Desktop.
Save DominicWatts/d08c98629fe77e69eea1f2d604bf16f6 to your computer and use it in GitHub Desktop.
Composer : Composer cheatsheet #composer
composer require vendor/module
composer global global vendor/module
composer require vendor/module:1.0.1
composer require vendor/module:^1.0.*
composer require vendor/module --update-no-dev
composer require vendor/module --update-no-dev --ignore-platform-reqs
composer require vendor/module --with-all-dependencies
composer install --no-dev
composer install --no-dev --prefer-dist
composer install --no-dev --prefer-source
composer install --no-dev --prefer-source --ignore-platform-reqs
composer show -i
composer show vendor/module
composer show vendor/module | grep "versions"
composer show -- klevu/module-*
composer why vendor/module
composer depends --tree vendor/module
composer show magento/product-community-edition --all | grep -m 1 versions
composer dump-autoload
composer remove vendor/module
composer remove vendor/module --no-update
composer create-project --prefer-source --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.4 ./
composer config repositories.magento-modules/m2-banner-manager git https://git.xigen.co.uk/magento-modules/m2-banner-manager.git
composer config http-basic.repo.magento.com 7bdd660a63609d2af9fcbc033a9eae8d 77c0cedb4871620c63acbd82aeb92f38
whereis composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment