1348 Commits (bbb781b1edbf50f273af96d00d4648cb3d85fa34)

Author SHA1 Message Date
Jáchym Toušek bbb781b1ed
Add --dry-run to composer require 4 years ago
Jordi Boggiano f964b83018
Add bearer support in config command and add to docs/schema, refs #8671 4 years ago
Jordi Boggiano beb64914a3
Retrieve latest funding info for all packages in fund command 4 years ago
Jordi Boggiano 6cf54170cc
Avoid mixing write/writeError which causes issues on some terminals, fixes #8656 4 years ago
Jordi Boggiano 5d970022e8
Normalize output of create-project target path, refs #8609, refs #8412 4 years ago
Volker Killesreiter e532e70b22 Revert "Chore: Use consistent directory path"
This reverts commit 43e0321ee7.
4 years ago
Jordi Boggiano 055a179cc5
Merge pull request #8453 from naderman/funding
Add funding field to composer.json and composer fund command
4 years ago
Jordi Boggiano 77a477fb57
Add FundCommand 4 years ago
Guilliam Xavier a17e7e9bd3
ValidateCommand: fix array syntax for PHP 5.3 4 years ago
Jordi Boggiano ff8bf0ab82
Clarify code
Co-Authored-By: Guilliam Xavier <guilliamxavier@users.noreply.github.com>
4 years ago
Guilliam Xavier a222ec5b36
ValidateCommand: remove actually unused code 4 years ago
Guilliam Xavier 35562dcd49
ValidateCommand: add a comment that we didn't forget $lockErrors 4 years ago
Guilliam Xavier 2f4bd85219
ValidateCommand: de-invert if-elseif-else to reduce code duplication 4 years ago
Guilliam Xavier 901d177179
ValidateCommand: factorize $printSchemaUrl code 4 years ago
Guilliam Xavier b5e41d6792
ValidateCommand: always display all warnings, independently of --strict 4 years ago
Guilliam Xavier 7e2679ffc1
ValidateCommand: pass $isStrict to outputResult() of with-dependencies too 4 years ago
Jordi Boggiano 02433c3659
Merge pull request #8565 from glaubinix/t/create-project-add-repository
Create project: add option to add the repository to the composer.json
4 years ago
Stephan Vock 2a564a9f36 Create project: add option to add the repository to the composer.json 4 years ago
Jordi Boggiano 5843a282bc
Merge pull request #8562 from adrianosferreira/fix-archive-format-cli
Uses config data from Composer object whenever possible on ArchiveCommand
4 years ago
Adriano Ferreira 97d077c43b Uses config data from Composer object whenever possible on ArchiveCommand
It was previously blindly getting a new instance from the factory thus ignoring what is on Composer object config data.
4 years ago
Jordi Boggiano 94dce37424
Avoid use of refs and avoid a false path when showing the root package, refs #8545 4 years ago
Julian van den Berkmortel 933fe27cd5 Add support for "composer show --format=json <package>" #8544 5 years ago
Patrick Weyck 7d7e3d594b Normalize minimum-stability `rc` to `RC` in `InitCommand`
A `minimum-stability` of `rc` is valid according to
`composer-schema.json` and works fine with install and update and
generally in version comparisons, because it's normalized to `RC`.

This commit makes it work in `InitCommand` and `RequireCommand` too.
5 years ago
Jordi Boggiano b9d00153d9
Suggest using -p when a platform package can not be found in show command 5 years ago
Jordi Boggiano e4b495ca16
Fix 5.3 build 5 years ago
Jordi Boggiano 669033f1e7
Collect existing packages only once, refs #8372 5 years ago
Jordi Boggiano c0714e5ff8
Merge remote-tracking branch 'xy2z/has-package-name' 5 years ago
Jordi Boggiano 6c795dedc0
Add openssl version to diagnose command, refs #8506 5 years ago
Jordi Boggiano f5dab18b7d
Remove dead code, refs #8517 5 years ago
Jordi Boggiano ee3fd0f745
Merge remote-tracking branch 'adrianosferreira/package-install-method-cli'
Fixed formatting, and handling of config command to be preferred-install.foo value

Refs #8517
5 years ago
Jordi Boggiano e8426d2c01
Adjust config handling of suggest, refs #8520 5 years ago
Jordi Boggiano f203b3eb41
Merge remote-tracking branch 'adrianosferreira/add-suggest-in-json-by-cli' 5 years ago
Jordi Boggiano c43137db3f
Merge branch '1.9' 5 years ago
Jordi Boggiano 8d24b61bef
Tweak and add comments to the working dir fix with global exec, refs #8515 5 years ago
Jordi Boggiano ef6ef8ac0f
Hint at the partial update command, fixes #8508, refs #8332 5 years ago
Adriano Ferreira 607d491921 Implemented way to add packages into suggest through CLI 5 years ago
Adriano Ferreira 5ea6fd0bcb Implemented way to use preferred-install for defining granular preferences through CLI
Currently, preferred-install accepts the hash of patterns as the value in the composer.json. I've followed the same approach as used in extra and platform for letting the user define install preferences through CLI in the format: `composer config preferred-install my-organization/stable-package.dist`.
5 years ago
Chad Wade Day, Jr 917680e0d4 Make global exec execute commands in working directory 5 years ago
johnstevenson beacdf4e51 Add Windows OneDrive to platform warnings 5 years ago
Jordi Boggiano 92cc5a821f
Merge pull request #8412 from polarathene/fix/improve-createproject-ux
Fix: Improve the create-project UX
5 years ago
gary houbre 920d690d90 Added new Alias For Clear cache 5 years ago
xy2z a91c946e27 Hide not-yet installed packages from "require" and "init" suggestions 5 years ago
polarathene 43e0321ee7 Chore: Use consistent directory path
Only when a install directory was not specified, was the CWD prepended to `$directory`. This change provides consistency in paths displayed to the user.
5 years ago
polarathene 1b2582ff5b Chore: Improve create-project install UX
Provides feedback output before a potentially long wait on getBestCandidate() call on slow network connections where unresponsiveness/hang may be assumed.
5 years ago
polarathene 5987114f6c Fix: Fail when install location is a file
In the event a file has the same name as the intended install directory, fail fast too.
5 years ago
polarathene 11207a9a2e Fix: Check for null install directory earlier
Allows for failing fast when no install directory was provided to the command(uses package name instead).
5 years ago
polarathene e5e8736383 Fix: Fail fast when the project directory is not empty
Avoid waiting until after `getBestCandidate()` has finished, as it can add notably delay on slow connections due to downloading megabytes of data. Only to fail if the install location is invalid.
5 years ago
Jordi Boggiano 6a7f8ac335
Merge branch '1.9' 5 years ago
Jordi Boggiano af86ca1fb3
Output a hint that maybe you are not in the right directory, fixes #8404 5 years ago
Jordi Boggiano 050707ed0c
Fix output of dump-autoload command to avoid interfering with warnings, refs #8397 5 years ago