71 Commits (main)

Author SHA1 Message Date
Marcus Förster f728b0b007
clarify `config.platform` short notation (#10741) 2 years ago
Jordi Boggiano 0a8dfe6ef7
Clarify that autoloader-suffix should be a non-empty-string, fixes #10720 (#10725) 2 years ago
Jordi Boggiano bb0edce095
Fixed lock file being used when lock:false is in config, refs #10715 (#10726) 2 years ago
gnito-org 239638e687
Fix minor spelling & grammar issues in docs (#10370) 2 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
2 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>
2 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>
2 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
Wouter de Jong bb128c465c Capitalize Composer in the docs 3 years ago
Sebastian Blank a9031e40eb
Add "symlink" option for "bin-compat" config (#9959) 3 years ago
Jordi Boggiano 30d38679a8
Update ci job token link 3 years ago
Abi أب 759897e7e8
Update cache dir on macOS to follow OS guidelines (now $HOME/Library/Caches/Composer) (#9898)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Brad Jones dd625669e8
Introduce gitlab-protocol option to force the gitlab repos to use https or git protocol (#9401) 3 years ago
Jordi Boggiano 8a3f4a8400
Add secure-svn-domains config option to mark secure svn:// hostnames, fixes #9872 3 years ago
Jordi Boggiano f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto (#9603)
Fixes #9546
Fixes #9674
3 years ago
Jordi Boggiano 89947c5e37
Bulk up platform config docs, refs https://github.com/composer/composer/issues/9377#issuecomment-719019204 4 years ago
Jordi Boggiano 55c7b45de0
Add php-only to docs 4 years ago
Jordi Boggiano 0d236858ec
Merge branch '1.10' 4 years ago
Nils Adermann b12b50c679 Docs: Remove unnecessary uses of simple/easy
They only serve to make anyone reading the docs who doesn't find
something as simple or easy as stated feel bad about themselves, they
don't add anything valuable to the docs in these cases.
4 years ago
Ruud Kamphuis 0234b13817
Specify unit for `process-timeout` config in docs 4 years ago
Frank Prins 53b0930287 Move some duplicate documentation, link across multiple pages and clarify some texts 4 years ago
Frank Prins 2c8cbebd85 Update authentication methods in documentation 4 years ago
Jordi Boggiano f966de94a9
Merge branch '1.10' 4 years ago
Jordi Boggiano 28fe3baf9c
Disable secure-http automatically when disable-tls is enabled, fixes #9235 4 years ago
Brad Jones 706125fbbf
Update config section to note required scope for GitLab tokens 4 years ago
Jordi Boggiano 90332f1dbd
Add a readonly mode to the cache, fixes #9150 4 years ago
Ayesh Karunaratne 6e3efabbfc
Multiple grammar fixes in markdown files 4 years ago
Matěj Kmínek a074819a51
Add support for gitlab deploy token (#8867)
* feat: Added ability to work with GitLab deploy tokens: https://docs.gitlab.com/ee/user/project/deploy_tokens/

Deploy tokens can be specified two ways:
1) GIT CONFIG:
git config --add gitlab.deploytoken.user USERNAME && git config --add gitlab.deploytoken.token TOKEN
2) Auth.json:
"gitlab-token": {
    "gitlab.com": {"username": "USERNAME", "token": "TOKEN"}
}
4 years ago
Jordi Boggiano 0071bc1ec0
Add docs about new runtime features 4 years ago
Jordi Boggiano 2c8a4a1b93
Add platform-check config option to disable platform_check.php generation, and disable it for Composer 4 years ago
Jordi Boggiano f964b83018
Add bearer support in config command and add to docs/schema, refs #8671 4 years ago
Mark Sch a9fec9b972
Fix language. 5 years ago
Arnout Boks 7c5e5e3ede Add option to disable the lock file
When the `lock` option is set to false, composer will not write a
`composer.lock` file to disk. This signals that the package is meant
to be developed with unlocked and always updated dependencies. At the
moment, both `install` and `update` are allowed to install the
dependencies for such a package. If #6822 is implemented, only `update`
should be used for packages without a lockfile.

https://github.com/composer/composer/issues/8354
5 years ago
Kevin Boyd 5d615a16d1 Add documentation for Composer\\Config::disableProcessTimeout 5 years ago
Jordi Boggiano 2d7a8c67e8
Doc formatting fixes 5 years ago
Kath Young fbb9d20c33 Adjusted config name to be more descriptive, added documentation 5 years ago
mw-jko 635d96b5e5
add hint for possible need of gitlab-domains option 6 years ago
Jordi Boggiano 9a3c0f7eda Tweak platform config docs, fixes #7067 6 years ago
Wil Hall 9e2cd9e717 Word wrap htaccess-protect option documentation 7 years ago
Wil Hall bf088c76c4 Simplify documentation for htaccess-protect config option 7 years ago
Wil Hall f0924fb878 Add htaccess-protect option for disabling the creation of .htaccess files 7 years ago
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
moyo c4ac59601f Update related docs and config definitions 8 years ago
bohwaz 49a94ca7fd Update docs for fossil support 8 years ago
Mickael GOETZ 9303a04bed fix `http-basic` json example
The JSON example for the `http-basic` option was missing the closing curly brace.
8 years ago
Paul Wenke d2c5479b2d Updated documentation and fixed formatting in Bitbucket Util. 8 years ago
Jordi Boggiano 30b7015f31 Update docs for github-protocols 8 years ago
Jordi Boggiano 06be9b88c2 Merge remote-tracking branch 'slbmeh/feature/gh-2787' 8 years ago
Jordi Boggiano cb59cf0c85 Allow exception to secure-http for packagist provider files and add docs, refs #4907 8 years ago