代码拉取完成,页面将自动刷新
-only
or -or-later
suffix added.bin
check-platform-reqs
bug in version checkingcheck-platform-reqs
command that checks that your PHP and extensions versions match the platform requirements of the installed packages--with-all-dependencies
to the update
and require
commands which updates all dependencies of the listed packages, including those that are direct root requirementsscripts-descriptions
key to composer.json to customize the description and document your custom commandsinit
and require
commands and nothing can be foundremove
on an non-stable packageUSER
env when guessing the username in composer init
htaccess-protect
option / COMPOSER_HTACCESS_PROTECT
env var to disable the .htaccess creation in home dir (defaults to true)clear-cache
commandinit
command for author namesapcu-autoloader
config option being ignored in dump-autoload
command--format json
option to the outdated
and show
command to get machine readable package listings--ignore-filters
flag to archive
command to bypass the .gitignore and cooutdated
output without ansi colorsCOMPOSER_BINARY
env var that is defined within the scope of a Composer run automatically with the path to the phar file@composer
handling in scripts when --working-dir is used together with it--minor-only
flag in outdated
command--minor-only
to the outdated
command to only show updates to minor versions and ignore new major versions--apcu-autoloader
to the update
/install
commands and --apcu
to dump-autoload
to enable an APCu-caching autoloader, which can be more efficient than --classmap-authoritative if you attempt to autoload many classes that do not exist, or if you can not use authoritative classmaps for some reasonphp-debug
and php-zts
virtual platform packagesgitlab-token
auth config for GitLab private tokens--strict
to the outdated
command to return a non-zero exit code when there are outdated packages@php ...
COMPOSER_ALLOW_XDEBUG
env var to circumvent the xdebug-disabling behaviorCOMPOSER_MIRROR_PATH_REPOS
env var to force mirroring of path repositories vs symlinkingCOMPOSER_DEV_MODE
env var that is set by Composer to forward the dev mode to script handlershash
from composer.lock, only content-hash
is now used which should reduce conflictshome
command to avoid rogue output on unixstatus
command. If you git checkout X
in a vendor directory for example it will tell you that it is not at the version that was installedphp-ipv6
extension to require PHP compiled with IPv6 support--no-suggest
to install
and update
commands to skip output of suggestions at the end--type
to the search
command to restrict to a given package type--prefer-stable
and --prefer-lowest
to the require
command--no-scripts
to the require
and remove
commands_comment
top level key to the schema to endorse using it as a place to store comments (it can be a string or array of strings)update
and install
will now re-install themremove
command--latest
to show
command to show the latest version available of your dependencies--outdated
to show
command an composer outdated
alias for it, to show only packages in need of update--direct
to show
and outdated
commands to show only your direct dependencies in the listingconfig
commandshow
and outdated
commands when listing latest packages~/
and $HOME/
in the path repository pathsshow
command package filter, e.g. composer show seld/*
@composer ...
status
commandvalidate
command when using exact-version requiresinit
event for plugins to react to, which occurs right after a Composer instance is fully initializedwhy-not
/prohibits
command to figure out why something does not get installed in the expected version2.0-dev || ^1.5
$
sign in composer config command in some cases it could corrupt the json fileinstall
command now turns into an update
command automatically if you have no composer.lock. This was done only half-way before which caused inconsistenciesremove
command now removes dependencies as well, and --update-with-dependencies is deprecated. Use --no-update-with-dependencies to get old behaviorself-update
. All users will now update to stable builds by default. Run self-update
with --snapshot
, --preview
or --stable
to switch between update channels.why-not
commandcreate-project
commandcreate-project
ignoring --ignore-platform-reqs when choosing a version of the packagesearch
command in a directory without composer.jsonsecure-http
config option.show
/ list
command now only show installed packages by default. An --all
option is added to show all packages.gitlab-oauth
and gitlab-domains
config optionsprohibits
/ why-not
command to show what blocks an upgrade to a given package:version pairshow
command to see all your installed packages in a tree viewupdate
command, which lets you pick packages to update interactivelyexec
command to run binaries while having bin-dir in the PATH for convenienceupdate
command to update only your direct, first degree dependenciescafile
and capath
config options to control HTTPS certificate authoritypreferred-install
types for more flexibility between prefer-source and prefer-diststatus
commandsecure-http
and disable-tls
config options to control HTTPS/HTTPsort-packages
config option to force sorting of the requirements when using the require
commandexclude-from-classmap
in the autoload config that lets you ignore sub-paths of classmapped directories, or psr-0/4 directories when building optimized autoloaderspath
repository type to install/symlink packages from local pathssuggests
command to show what packages are suggested, use -v to see more detailscontent-hash
inside the composer.lock to restrict the warnings about outdated lock file to some specific changes in the composer.json filearchive-format
and archive-dir
config options to specify default values for the archive commandinstall
, update
, require
, remove
and dump-autoload
commands, forcing the optimized classmap to be authoritativevalidate
command to allow validating all your dependencies recursivelyvalidate
command to treat any warning as an error that then returns a non-zero exit codebin-compat
config option that if set to full
will create .bat proxy for binaries even if Composer runs in a linux VMarchive
command to choose the filenameComposer\Script\CommandEvent
is deprecated, use Composer\Script\Event
Composer\Script\PackageEvent
is deprecated, use Composer\Installer\PackageEvent
^
and -
ranges,
= AND, ||
= OR)update
command to allow testing a package with the lowest declared dependencies+anything
at the end of versionsrequire
command for sorting dependenciesinstall
and update
commands to skip autoload generationrun-script
command to see available scriptsconfig
command to get back absolute pathsclassmap-authoritative
config option, if enabled only the classmap info will be used by the composer autoloaderhttps_proxy
/HTTPS_PROXY
env vars used only for https URLscreate-project
commandlicenses
commandremove
command to do the reverse of require
install
/update
commands to install even if you are missing a php extension or have an invalid php versionrequire
command, which can now be used simply as composer require foo/bar
browse
command to open a browser to the given package's repo URL (or homepage with -H
)autoload-dev
section to declare dev-only autoload rules + a --no-dev flag to dump-autoloadauth.json
file, with store-auths
config optionhttp-basic
config option to store login/pwds to hostsoptimize-autoloader
config option to force the -o
flag from the configclear-cache
commandssh
support in the github-protocols
config optionpre-dependencies-solving
and post-dependencies-solving
eventspre-archive-cmd
and post-archive-cmd
script events to the archive
commandno-api
flag to GitHub VCS repos to skip the API but still get zip downloads.hh
files when running HHVMfiles
autoloaded scripts to ensure they can not affect anythinginstall
command now has --dev enabled by default. --no-dev can be used to install without dev requirementscomposer-plugin
package type to allow extensibility, and deprecated composer-installer
psr-4
autoloading support and deprecated target-dir
since it is a better alternativeglobal
command to operate Composer in a user-global directorylicenses
command to list the license of all your dependenciespre-status-cmd
and post-status-cmd
script events to the status
commandpost-root-package-install
and post-create-project-cmd
script events to the create-project
commandpre-autoload-dump
script eventhhvm
platform package to require Facebook's HHVM implementation of PHPgithub-domains
config option to allow using GitHub Enterprise with Composer's GitHub supportprepend-autoloader
config option to allow appending Composer's autoloader instead of the default prepend behaviorno_proxy
env var and other proxy support improvementscomposer -V
outputautoloader-suffix
config option to allow overriding the randomly generated autoloader class suffixcomposer install --no-dev
. The install command will install dev dependencies by default starting in the next releaseupdate
command now has --dev enabled by default. --no-dev can be used to update without dev requirements, but it will create an incomplete lock file and is discouragedprefer-stable
flag to pick stable packages over unstable ones when possiblepreferred-install
config option to always enable --prefer-source or --prefer-distdiagnose
command to to system/network checks and find common problemscomposer update vendor/*
archive
command to archive the current directory or a given packagerun-script
command to manually trigger scriptsproprietary
as valid license identifier for non-free codephp-64bit
platform package that you can require to force a 64bit phplib-ICU
platform packageproject
for project-bootstrapping packagespost-autoload-dump
script eventEvent::getDevMode
to let script handlers know if dev requirements are being installeddiscard-changes
config option to control the default behavior when updating "dirty" dependenciesuse-include-path
config option to make the autoloader look for files in the include path toocache-ttl
, cache-files-ttl
and cache-files-maxsize
config optioncache-dir
, cache-files-dir
, cache-repo-dir
and cache-vcs-dir
config optioncomposer show monolog/monolog 1.4.*
artifact
repository to scan a directory containing zipped packagesinstall
and update
commandsinstall
and update
to hide the progress indicatorsshow
command to display only available packagesshow
command to show only package names (one per line, no formatting)install
and update
commands~
operator combined with unstable versionsrequire
command corrupting the json if the new requirement was invalid<version>#<reference>
constraintsconfig
command to support all optionsvalidate
command~
operator that should be preferred over >=
, see http://getcomposer.org/doc/01-basic-usage.md#package-versions
<x.y
are assumed to be <x.y-dev
unless specified as <x.y-stable
to reduce confusionconfig
command to edit/list config values, including --global switch for system configgithub-protocols
config key to define the order of preferred protocols for github.com clonesdump-autoload
command to only regenerate the autoloaderdump-autoload
to generate a more performant classmap-based autoloader for productionstatus
command to show if any source-installed dependency has local changes, use --verbose to see changed filesinstall
and update
that shows the new commits when updating source-installed dependenciesrequire
to only modify the composer.json file but skip the updateinstall
, update
and create-project
to prevent all automatic code executionvalidate
commandminimum-stability
is now stable
, read more
dev-master#abcdef
for example will force the abcdef commitsupport
key with some more metadata (email, issues, forum, wiki, irc, source)!=
operator for version constraints in require
/require-dev
lower-cased/with-dashes
, it will be enforced for new packages on Pacakgistrequire
command to add a package to your requirements and install itupdate
. Calling composer update foo/bar foo/baz
allows you to update only those packageslib-*
packages to the platform repository, e.g. lib-pcre
contains the pcre versionshow
command to display the infos of the root packagecreate-project
commandinstall
and update
commands to avoid triggering the scriptsCOMPOSER_ROOT_VERSION
env var to specify the version of the root package (fixes some edge cases)require-dev
for development-time requirements (tests, etc), install with --devminimum-stability
+ @<stability>
flags in require for restricting packages to a certain stabilityrecommend
suggest
is now informational and can use any description for a package, not only a constraintcreate-project
command to install a project from scratch with composerclassmap
autoloading support for non-PSR-0 compliant projectsvalidate
command to give more feedbacksearch
& show
commands output此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。