Skip to main content

Composer commands

Available commands:

  • composer about: Shows a short information about Composer
  • composer archive: Creates an archive of this composer package
  • composer audit: Checks for security vulnerability advisories for installed packages
  • composer browse: [home] Opens the package's repository URL or homepage in your browser
  • composer bump: Increases the lower limit of your composer.json requirements to the currently installed versions
  • composer check-platform-reqs: Check that platform requirements are satisfied
  • composer clear-cache: [clearcache|cc] Clears composer's internal package cache
  • composer clear-cachecompletion: Dump the shell completion script
  • composer clear-cacheconfig: Sets config options
  • composer create-project: Creates new project from a package into given directory
  • composer depends: [why] Shows which packages cause the given package to be installed
  • composer diagnose: Diagnoses the system to identify common errors
  • composer dump-autoload: [dumpautoload] Dumps the autoloader
  • composer exec: Executes a vendored binary/script
  • composer fund: Discover how to help fund the maintenance of your dependencies
  • composer global: Allows running commands in the global composer dir ($COMPOSER_HOME)
  • composer help: Display help for a command
  • composer init: Creates a basic composer.json file in current directory
  • composer install: [i] Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json
  • composer licenses: Shows information about licenses of dependencies
  • composer list: List commands
  • composer outdated: Shows a list of installed packages that have updates available, including their latest version
  • composer prohibits: [why-not] Shows which packages prevent the given package from being installed
  • composer reinstall: Uninstalls and reinstalls the given package names
  • composer remove: [rm|uninstall] Removes a package from the require or require-dev
  • composer require: [r] Adds required packages to your composer.json and installs them
  • composer run-script: [run] Runs the scripts defined in composer.json
  • composer search: Searches for packages
  • composer self-update: [selfupdate] Updates composer.phar to the latest version
  • composer show: [info] Shows information about packages
  • composer status: Shows a list of locally modified packages
  • composer suggests: Shows package suggestions
  • composer update: [u|upgrade] Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file
  • composer validate: Validates a composer.json and composer.lock
Google AdSense
client = ca-pub-2898279488603899
slot = 9058461004
format = auto