1408 Commits (abdc6893a6da0980b07343005f5807ecb73f3150)

Author SHA1 Message Date
Jordi Boggiano 40de07569d
Merge branch '2.2' into main 2 years ago
Jordi Boggiano acea849c51
Clarify plugin docs slightly wrt pre-operations-exec event 2 years ago
Jordi Boggiano 4376153912
Improve untrusted package install docs 2 years ago
Jordi Boggiano 5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors (#10476)
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Volodymyr Panivko a0b0ddcd73
Add config option for update reference in path repository (#10488) 2 years ago
Jordi Boggiano ac8fb8cc57
Merge branch '2.2' into main 2 years ago
Jordi Boggiano 4f2e2ec4fc
Update docs for renamed COMPOSER_RUNTIME_BIN_DIR 2 years ago
Houssem Zitoun 3ae111140f
Improve documentation (#10477)
Co-authored-by: Houssem ZITOUN <houssem.zitoun@ekino.com>
2 years ago
James Watts 96332161fe
Fix simple typo and slightly reword phrase. (#10456) 2 years ago
Jonas Drieghe b9c368a9c3
Use new url for semver testing tool (#10449)
semver.mwl.be returns a permanent redirect to semver.madewithlove.com
3 years ago
Jordi Boggiano f7ce907148
Update plugin-api in docs 3 years ago
Nico Haase 8486b38fef
Update plugins.md API version (#10427)
Fixing the API version, as changed in 1b5b5c48bf
3 years ago
Jordi Boggiano a8ed352b31
Add docs for the new bin-dir access and bump runtime-api, refs #10402 3 years ago
Jordi Boggiano 8f1b3d21db
Add --no-scripts to all commands and disable plugins/scripts when running self-update (#10371)
* Add --no-scripts as global parameter available to all commands, and handle it by default when creating a Composer instance from Command::getComposer

* Disable scripts/plugins for self-update command, fixes #10351
3 years ago
gnito-org 239638e687
Fix minor spelling & grammar issues in docs (#10370) 3 years ago
Tom Klingenberg 692de949de
$home -> $COMPOSER_HOME (#10363)
the `$home` variable referenced in the conifguration docs for data- and
cache-dir is a reference to an internal PHP variable that contains the
composer home directory.

as on the documentation page it is not visible where that variable comes
from (the document uses only shell/environment variables otherwise) these
two places are hard to read/understand.

the exact meaning of `$home` (lowercase) is the composer-home (or just
home) global configuration setting (composer home is for all user-wide
composer invocations, to store data in the filesystem namespace of the
user executing composer).

that meaning is better documented with the `$COMPOSER_HOME` environment
variable (which when it does not exists the default value is well
documented in [03-cli.md#composer-home].

replace `$home` with `$COMPOSER_HOME`.

additionally small typo fix on "rollback" which is "roll back".

discussion: #10363
[03-cli.md#composer-home]: doc/03-cli.md#composer-home
3 years ago
Jordi Boggiano d274bf0313
Fix PHP x spacing 3 years ago
Markus Staab f051a42bc9
docs: Highlight sudo (#10367) 3 years ago
Jordi Boggiano cc32ebcabd
Search improvements (#10336)
* Search performance improvements, add SEARCH_VENDOR type, fixes #10326, fixes #10324, fixes #10325

* Add extra optimization path for autocompletion of ^foo/* whereas the vendor is fully known, refs #10320
3 years ago
Jordi Boggiano a3e91b5be6
Add allow-plugins config value (#10314)
Fixes #5659

- Automatically switch off plugins by default in July 2022
- reword hash into object in schema

Co-authored-by: Nils Adermann <naderman@naderman.de>
3 years ago
Colan Schwartz 04dbed27a9
Make it explicitly clear that `dev-` shouldn't be in the actual branch name. (#10335) 3 years ago
Jordi Boggiano a4a89f1508
Update archive format docs, refs #10087 3 years ago
Henk Poley 74951b5377
Document archive --format=tar.gz (#10087) 3 years ago
Jordi Boggiano e30a6b0b9b
Add support for ignoring the upper bound of platform requirements using "name+" notation 3 years ago
Nils Adermann 09ffabbf6e Merge branch '2.1' into main
* 2.1:
  Fixed documentation for cache-dir location in case of xdg
3 years ago
Alex Plekhanov 2474d6f526
Fixed documentation for cache-dir location in case of xdg 3 years ago
Tizian Schmidlin 4f789a5f6d
Add "use-parent-dir" config to configure prompt when no composer.json is present in current dir (#10307)
Fixes #10299

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano 5d218287d9
Doc clarification 3 years ago
Helmut Hummel ace8a1776c
Add composer platform package with exact Composer version (#10313)
Co-authored-by: Lars Strojny <lars.strojny@internations.org>
Co-authored-by: Nils Adermann <naderman@naderman.de>
3 years ago
Jordi Boggiano 91548d178b
Add support for setting platform packages to false to disable them (#10308)
Fixes #9664
3 years ago
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Yehuda Katz ebf4cbdc69
Add COMPOSER_NO_DEV environment variable to set the --no-dev flag (#10262) 3 years ago
Rafael Dohms 78583ab678
Support ignore-platform-reqs in `composer outdated` (#10293)
This allows users to also find libraries that require major platform
changes to unlock updates.
It addresses #10291.
3 years ago
Jordi Boggiano 807c677865
Improve some linking 3 years ago
Martin Herndl 8386264c98
Fix spelling of Bitbucket (#10290) 3 years ago
Stephan 5297f72e3f
Docs: add transport options example and differentiate between cURL and stream options (#10289)
+ remove Bitbucket mercurial reference
3 years ago
Bruno Baguette 0f5f0fb9e1
(Probable) typo fix (#10286)
Isn't "to" missing before "raise awareness" ?
3 years ago
Yanick Witschi 34183f49f9
Implemented PoolOptimizer 3 years ago
Martin Herndl 7eca450d9b
Add wildcard support to ignore-platform-req, fixes #10045 (#10083) 3 years ago
Jordi Boggiano 8542321a31
Updates to the troubleshooting docs, refs #10129 3 years ago
Stephan 44c5b6cde6
Config: add source option for command to show where a config value is loaded from (#10129) 3 years ago
Raphael de Almeida 150acc5559
Removed HgBitbucketDriver support (#10248) 3 years ago
Matthias Pigulla abf832aa49
Update what GitHub token scope is needed and what it implies (#10257)
Follows up on https://github.com/composer/composer/pull/10256.
3 years ago
Jordi Boggiano c65d09dff7
Fix @inheritDoc annotations 3 years ago
jakobvibe 15934a083c
Added link to composer-allow-superuser (#10215) 3 years ago
Wouter de Jong bb128c465c Capitalize Composer in the docs 3 years ago
Wouter de Jong 6aec6ecbfa Use `composer.phar` consistently in the examples 3 years ago
Markus Staab c9b80bc3b6
Fix reference to main [ci skip] (#10174) 3 years ago
Markus Staab b8e2fcd33d
Fix reference to main branch (#10173) 3 years ago
Jordi Boggiano 0868245589
Rename master branch to main 3 years ago