859 Commits (1b97d07bcad6e44c52fb9d7bde98955d5c51659d)

Author SHA1 Message Date
vlakoff 3a68534d20 Fix parser error if composer.json existing but empty 9 years ago
Jordi Boggiano b80038804f Fix env override regression, fixes #3820 9 years ago
Francis Besset 4f57fafb8d [create-project] Used no progress value for dependencies 9 years ago
Jordi Boggiano b098a2fdde Fix clear cache when a dir does not exist, fixes #3810 9 years ago
Kunal Mehta 05e196893b Add --no-check-publish option to "composer validate"
This is useful when you want to use composer to manage dependencies, but
don't actually want your project to be installable as a composer package.

Any issues that would prevent publishing are still shown, but as a warning
instead of an error.
9 years ago
Jordi Boggiano d5feea83b6 Sync up diagnose command with the installer 9 years ago
Jordi Boggiano e0ce559838 Merge remote-tracking branch 'alcohol/write-errors-to-stderr'
Conflicts:
	src/Composer/Command/LicensesCommand.php
9 years ago
Jordi Boggiano 182cfbc249 Merge remote-tracking branch 'SofHad/licenses'
Conflicts:
	src/Composer/Command/LicensesCommand.php
9 years ago
Christian Flothmann fa3ea2a626 remove unused method argument
Unlike the `TableHelper`, the `render()` method of the `Table` class
does not make use of an `$output` argument. The actual `OutputInterface`
to send the table to is passed in the constructor instead.
9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 84d4594278 Merge remote-tracking branch 'alcohol/update-tablehelper-to-table' 9 years ago
Jordi Boggiano 3cff4a3bb9 Check for homepages in local repo first if available to make the home command faster 9 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 9 years ago
Rob Bast 3dd93c91b8 TableHelper is deprecated, switched to Table 9 years ago
Jordi Boggiano 5744981795 Merge pull request #3702 from alcohol/feature/list-scripts
Added --list to run-script command, closes #3671
10 years ago
Jordi Boggiano 0e977e3fde Add more docs to config command 10 years ago
Rob Bast 47d75f77d5 Let's be gentle and allow FALSE too 10 years ago
Rob Bast ef92a06205 composer config repositories.packagist false
closes #3728, closes #3713, closes #3290, not sure about #3025
10 years ago
Rob Bast a34335a9bb github deprecation changes
- added some tests
- minor bug fixes discovered during testing
- resolved two deprecations (rate limit api and authorizations api)
- added some more comments to make the flow more understandable
10 years ago
Kocsis Máté d7437f19ad Changed config key order 10 years ago
Kocsis Máté f503ee2f4e Adding composer config bin-compat command 10 years ago
Rob Bast 1b10740473 Added --list to run-script command, closes #3671 10 years ago
Jordi Boggiano 07c644ac22 Merge remote-tracking branch 'alcohol/modify-diagnose-output' 10 years ago
Rob 27d211096c chmod 644 src/Composer/Command/RemoveCommand.php 10 years ago
Nicolas Toniazzi 865eab602f Merge remote-tracking branch 'parent/master'
Conflicts:
	src/Composer/Factory.php
10 years ago
SofHad f9777bc70a Check if input is interactive 10 years ago
SofHad 1a82ecad91 Refactor the loop + add private method isInteractive 10 years ago
Jordi Boggiano b39e0a271f Merge pull request #3517 from WouterJ/patch-2
Added deprecated warning for the dev option
10 years ago
Padraic Brady 939a4aa9c2 Get tests running to prep for fixes 10 years ago
Padraic Brady 510ec6b91c A couple of minor omissions from the merge 10 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Jordi Boggiano 27ce5ec336 Merge pull request #3688 from jeremy-derusse/improve-selfupdate-chmod
Reuse current file permissions in selfupdate
10 years ago
Nils Adermann 71f83599bb Merge pull request #3592 from SofHad/show-homepage
Only show instead of open the repository or homepage URL
10 years ago
shaddag 0b2a31a89d suppress the prefix 10 years ago
Jérémy Derussé e7f4014018 Reuse current file permissions 10 years ago
Wouter J 32218e97d1 Added deprecated warning for the dev option 10 years ago
Nils Adermann 0543a32d39 Merge pull request #3610 from bd808/feature/classmap-authoritative
Add classmap-authoritative config setting
10 years ago
Dmitry Tarasov e047ca9944 #3665 fix exception message coding style 10 years ago
Rob Bast cdcf39b2f0 Don't show download progress 10 years ago
Dmitry Tarasov 506d923e7c #3663 fix error message for config command 10 years ago
Rob Bast 4038477a7f Missed a - 10 years ago
Rob Bast 5b8f9b0390 Altered output of diagnose
- added some docblocks
- added rate limit check for users that have no oauth token configured
- made it 'scream' less (yellow text instead of yellow background)
- reformatted the php ini checks slightly to be more condensed
10 years ago
SofHad dd9e208bc7 update the logic 10 years ago
Alexander Schwenn 395903863b Add 'info' alias for 'show' command 10 years ago
Wouter J 3bf1ee939b Fixed validator to accept 'a/b' and 'a/b ~2.3' 10 years ago
SofHad 6fff09c82a Simplified questionnaire 10 years ago
Carsten Brandt 7e3f4805c0 Updated the documentation of the require command
It did not mention that it is possible to leave out the version constraint.
10 years ago
SofHad aca619e130 Interactive interface with autocompletion 10 years ago
Webber Wu 261a31c149 show change if package directory have changed to symbolic link 10 years ago
Jordi Boggiano c58b7d917c Disable progress when no-ansi is specified, refs #3612 10 years ago
Bryan Davis ad1f8e6c5a Add classmap-authoritative config setting
Add a "classmap-authoritative" configuration setting that can be used to
disable searching the various prefix and fallback directories for
classes that have not been registered with the
Composer\Autoload\ClassLoader class map. This setting can be used to
optimize performance by avoiding a potentially large number of
`file_exists` calls when Composer is being used in a program with
additional autoloader facilities. Use of the setting implies
"optimize-autoloader" to ensure that the most complete class map
possible is generated.

Closes #3603
10 years ago
Jordi Boggiano ddc1d377d7 Merge pull request #3601 from SofHad/unused-parameters
Suppress unused parameters in HomeCommand
10 years ago
Jordi Boggiano 8d0c1a14b3 Add --ignore-platform-reqs to create-project, refs #1426 10 years ago
SofHad 5c43485e57 Suppress unused parameters in HomeCommand 10 years ago
Jordi Boggiano 095dc61295 Rename runAutoloader to dumpAutoloader, refs #3453 10 years ago
Jordi Boggiano b8f4960f0d Merge remote-tracking branch 'mattsah/master' 10 years ago
SofHad 844b57bf7f Fixed render method 10 years ago
SofHad dc9429c82a Remove deprecated TableHelper and update table style 10 years ago
SofHad c93305a805 To show instead of open the repository or homepage URL 10 years ago
Jordi Boggiano c54d6f93e3 Add --absolute to resolve absolute paths in config command, otherwise set default back to relative 10 years ago
Nicolas Toniazzi ad9c3d3b30 Merge branch 'master' of https://github.com/composer/composer
Conflicts:
	src/Composer/Factory.php
10 years ago
Rob Bast 47fd093a44 added --no-progress to self-update
closes composer/composer#3555
10 years ago
Nicolas Grekas 98b254a3ec split update --prefer-lowest and --prefer-stable 10 years ago
Nicolas Grekas 4a0feb0189 add --prefer-lowest-stable to update command 10 years ago
Andreas Möller 6ddd8d4ec7 Enhancement: Add sort-packages option which allows sorting of packages 10 years ago
Jordi Boggiano 3ff8bcffea Allow loading of real composer repos by local path, fixes #1899 10 years ago
Jordi Boggiano d8f043e12c Remove object state from methods to simplify things, refs #3385 10 years ago
Jordi Boggiano dc6da039d5 Merge remote-tracking branch 'gimler/licenses_no_dev' 10 years ago
Jordi Boggiano d249d0c121 Reset composer to load the new requirements, fixes #3511 10 years ago
Nils Adermann 859c8f5bb3 Use the repositories configured in composer.json for the require command 10 years ago
Douglas Greenshields fac3e135e3 fix typo 10 years ago
Nicolas Toniazzi 83a1441285 Added support for backup PHARs 10 years ago
Matthew J. Sahagian 55b2afe9ad Expose no autoloader option to update command 10 years ago
Matthew J. Sahagian 198ac7bc5b Expose no autoloader option to install command 10 years ago
Nils Adermann 6f4be698a5 Merge pull request #3325 from rdohms/implementing-abandoned-packages
Abandoned Package Warnings
10 years ago
Olivier Laurendeau b6b3cf3a49 Add ignore-platform-reqs option to require command 10 years ago
Olivier Laurendeau 6784570691 Add ignore-platform-reqs option to remove command 10 years ago
d060631 cfa8432a60 add no-dev option to licenses command 10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano 751190aafd Add new github-expose-hostname to docs/schema/config command, refs #3164 10 years ago
Jordi Boggiano 9c32f24cfc Remove original indent if present, fixes #3143 10 years ago
Jordi Boggiano ec0463a400 Add tests for platform packages required by root and avoid creating rules altogether instead of disabling them, refs #3320 10 years ago
Jordi Boggiano 71976a638c Merge remote-tracking branch 'alu/ignore-ext-require'
Conflicts:
	src/Composer/Installer.php
10 years ago
Jordi Boggiano 4bdd7adc55 Merge pull request #3319 from desyncr/bugfix/missing-default-author-value-validation
Fix missing validation on default value for author input
10 years ago
alu b7fa302b90 add ignore-platform-package-requirements for update/install commands. 10 years ago
Jordi Boggiano 73e9db5d99 Fix the problem at the source, refs #3322 10 years ago
Jordi Boggiano 5c42cc8c8c Merge remote-tracking branch 'AydinHassan/hotfix/init-virtual-packages' 10 years ago
Jordi Boggiano df7c8915fa Skip notification about matches found in case we have an exact match, refs #3261 10 years ago
Jordi Boggiano d4062a5594 Merge remote-tracking branch 'kayladnls/kayla' 10 years ago
Christophe Coevoet 4685b4bf49 Fixed the resetting of the json file on removal failures
Closes #3329
10 years ago
Jordi Boggiano 2e1373b339 Update require message and delete empty file at the end in case of failure, fixes #3260 10 years ago
Rafael Dohms 5ed01fb60d Abandoned support in `show`
Executing `composer show` on an abandoned package displays the warnings for package status.
10 years ago
Jordi Boggiano 1e4229e22a Adjust APC check, refs #264 10 years ago
Aydin 432cdbcb31 Allow to select virtual packages 10 years ago
DC* c698aa3a2b Fix missing validation on default value for author input
The default author value on the composer init command is not validated against `parseAuthorString` method and thus not being re-prompted, finally throwing an InvalidArgumentException when it tries to generate the composer.json file.

The changes forces the validation of both the entered author string or the default value.
10 years ago
Jordi Boggiano 391a5390f2 Typo fix, cheers @rdlowrey 10 years ago
frederik d1d40502bf ProcessExecutor::escape 10 years ago
frederik 7ae1430689 #3297 ProcessUtil class using ProcessUtil of Symfony Console 10 years ago
Jordi Boggiano b7b0901f87 Allow using new code in the init command and avoid initializing the composer instance too early, refs #3096 10 years ago
Jordi Boggiano cf75ec7763 Merge remote-tracking branch 'weaverryan/require-version-select' 10 years ago
Jordi Boggiano 2cb64c8a72 Merge pull request #3175 from Petah/clear-cache
Clear all the caches
10 years ago
Ryan Weaver 895e62e859 Refactoring selection of the "recommended" version (e.g ~1.2) and adding some tests
This also modifies the behavior slightly (from a recommendation by seldaek) to always
propose the minor version of the recommendation (e.g. ~1.2 instead of ~1.2.1).
10 years ago
Ryan Weaver aea2e901a9 Extracting logic into a new class related to selecting the latest version
Also refactored InitCommand slightly so that you can use this "latest version"
functionality when searching for a package as well.
10 years ago
Ryan Weaver 26179cc4b4 [#2492] Prefixed real versions with ~ when guessing the latest version
2.1.0 > ~2.1.0
v2.1.0 -> ~2.1.0
dev-master -> dev-master
10 years ago
Ryan Weaver 58535a62fa [#2492] Automatically using the latest version when requiring a package
This applies to the init and require commands.

Previously:

If you ommitted the version of a library, it prompted you to enter a version.

New Behavior:

If you omit the version, it automatically selects the latest version that is consistent
with your minimum-stability flag.

Is Jordi mentions, this is consistent with how npm works.
10 years ago
Ryan Weaver 947db97e33 [#2492] Removing an unused variable and use statement, fixing phpdoc 10 years ago
Kayla Daniels ec758d95b0 updated package variable in gathering requirements 10 years ago
Jordi Boggiano a8adbfeb9f Disallow overriding commands with scripts 10 years ago
David Neilsen 957f498419 Update clear cache command to be more verbose 10 years ago
cw-ozaki d649cfc6a1 Add --no-scripts argument for dump-autoload command 10 years ago
David Neilsen be5eae5852 Clear all the caches 10 years ago
Jordi Boggiano 4f5d979bee ArchiveCommand improvements 10 years ago
Jordi Boggiano cec1627acf Add top level aliases for nonstandard scripts and allow parameter passing, refs #2516 10 years ago
Jordi Boggiano d9d8d09fe1 Add support for local binaries in scripts, refs #2516 10 years ago
Jordi Boggiano 33cedda708 Merge remote-tracking branch 'MaxGfeller/run-script-enhancement' 10 years ago
Jordi Boggiano b6ef95ecb8 Add support for opening multiple packages at once, refs #2445 10 years ago
Jordi Boggiano 22afc074a9 Add browse command to docs, add a -H flag and tweak fallback mechanism to maximize chances of opening something, refs #2445 10 years ago
Jordi Boggiano e10bf5a172 Merge remote-tracking branch 'digitalkaoz/new_home_command'
Conflicts:
	src/Composer/Console/Application.php
10 years ago
Jordi Boggiano e3f32a79f3 Finalize and bring up to speed the remove command, refs #2479 10 years ago
Jordi Boggiano 70d9cad549 Merge remote-tracking branch 'pierredup/remove-command'
Conflicts:
	src/Composer/Console/Application.php
10 years ago
Nils Adermann ea6917c87a Merge pull request #3034 from Petah/clear-cache
Add clear cache command.
10 years ago
Jordi Boggiano e77435cd0c Skip apc check for hhvm, fixes #3081 10 years ago
Maximilian Reichel 845ebdcfd4 alter command help to explain glob usage
hey there! using globs for whitelisting packages is (imo) a very useful feature worth being explained to the user ;)
10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano d97e00643f Fix typo 10 years ago
Jordi Boggiano e890d1bc59 Remove use of glob, fixes #3042 10 years ago
David Neilsen 7fe3426991 Clean up unused 'use' statements 10 years ago
David Neilsen 075c85dd48 Fix typo in src/Composer/Command/ClearCacheCommand.php 10 years ago
David Neilsen 421c9453a4 Add clear cache command. 10 years ago
Jordi Boggiano 56c5af8dc4 realpathGlob tweaks, refs #2932 10 years ago
Richard Quadling 443858dae7 Force all glob results to be realpath'd. 10 years ago
Jordi Boggiano 959cc4d63c Add info about conf file loading to debug output 10 years ago
Stephan Hochdörfer 493ebbaacb Fix to load the auth information before the root package gets installed. 10 years ago
Jordi Boggiano 90d1b6e08a Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862 10 years ago
Jordi Boggiano b6981d09e8 Fix handling of origin url in composer repository class 10 years ago
renatbilalov ee142688e1 Corrected description of the option --optimize (-o) 10 years ago
Jérôme Macias 4f417e3985 Add --no-check-all option to composer validate command 10 years ago
Jordi Boggiano 3251f9f1aa Only check phar validity if phar.readonly is false 10 years ago
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 10 years ago
Nils Adermann 1e4df0690a Shorter boolean conversion 10 years ago
Nils Adermann e93eeca13a Merge pull request #2894 from naderman/update-no-dev
Add an --update-no-dev option to the require command
10 years ago
Nils Adermann a2b227740a Add an --update-no-dev option to the require command 10 years ago
Nils Adermann 465f0e3761 When requiring a package remove it from require-dev and vice versa 10 years ago
Pierre du Plessis 244e865a35 Fix typo 10 years ago
drscre b75beda99c Bug in RunScriptCommand::execute()
When checking for known command in commandEvents and scriptEvent '&&' should be used instead of '||'
10 years ago
Jordi Boggiano e221757197 Update code to latest EventDispatcher, refs #2722 10 years ago
Sandy Pleyte b9efdd8348 Separated the scripts events in 2 arrays because they need to be called by different dispatchers. 10 years ago
Sandy Pleyte fd4fb80d1e Fix for #2557, added missing run-scripts 10 years ago
Jordi Boggiano aa9c257f0e Merge remote-tracking branch 'alebiavati/list-paths' 10 years ago
Alessandro Biavati c5d1a3575c Added `path` flag to show install path for installed packages 10 years ago
Pádraic Brady 825b458593 Fix missing opts for diagnose command 10 years ago
Pádraic Brady 6c7dd39837 Merge branch 'master' of github.com:composer/composer into tls-config 10 years ago
Pádraic Brady 49414a9790 Remove InputInterface passing from previous commits
- no longer necessary with IOInterface update
10 years ago
Jordi Boggiano 790a25c348 Adjust dump command, add another test, update docs, refs #1344 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Pádraic Brady 9881d76216 Adds Composer\Factory::createRemoteFilesystem():
- Implemented in self-update command
- Added to Composer\IO\BaseIO the getInputOption() and getInputArgument() getters to allow access to input
- Fixed some minor bugs
10 years ago
Pádraic Brady 6f0f17355f Small fix for validated NULL cafile in config 10 years ago
Pádraic Brady cb32c480be Validate disable-tls and cafile config file values 10 years ago
Pádraic Brady d8cbd9f057 Expand cli TLS options to other commands + misc fixes 10 years ago
Bilal Amarni db91454a13 added an autoload-dev section 10 years ago
Pádraic Brady 30c6aa3183 Merge branch 'master' of github.com:composer/composer into tls-config 10 years ago
Pádraic Brady 83d4e3a940 Fixes from functional testing (need to automate this stuff!) 10 years ago
Pádraic Brady 600b6c8cb3 TLS support for Factory::createComposer() - for JsonFile remotes 10 years ago
Pádraic Brady a2bf14e381 Make disableTls a core RemoteFilesystem option - per method invites human error 10 years ago
Sandy Pleyte ee62ec60f0 Remove old comment 10 years ago
Sandy Pleyte ab8f67e8cf Always use rootPackage config 10 years ago
Sandy Pleyte 9af5eaa574 Refactored the code with the switch statement. 10 years ago
Sandy Pleyte bc7c93ae85 Fix for #1966, use the preferred-install from the rootPackage config to install the dependencies. 10 years ago
Pádraic Brady 49590af656 $originUrl passed to RemoteFilesystem is actually a HOST string already (so far!) 11 years ago
Pádraic Brady 0a8180674e Adding some HTTPS check to diagnose command (stash) 11 years ago
Pádraic Brady 2648064e5a Some typos/corrections 11 years ago
Pádraic Brady 4d5515190f Reorder self-update opts and correct requirements 11 years ago
Pádraic Brady fa6c8eb6c0 Add disable-tls to self-update command as a defined option 11 years ago
Pádraic Brady ca4b4696b0 Added Exceptions, errors and info messages for self-update command and TLS defaults to RemoteFilesystem 11 years ago
Pádraic Brady d081aa0784 Restructure self-update http/https decision
Error on non-openssl and warn user about setting disable-tls to disable error.
If disable-tls is true, ad an info message about running in non-TLS mode.
11 years ago
Jordi Boggiano 245461d8ed Merge pull request #2682 from gena01/ssh-support-in-github-protocols
Adding ssh protocol support to "github-protocols".
11 years ago
Steve Buzonas 3ad47b5d2c add allowing require to update dep chain, fixes composer/composer#2668 11 years ago
Gennady Feldman ac78eaa027 Adding ssh protocol support to github-protocols. 11 years ago
Jordi Boggiano a90a05a059 Detect composer install foo/bar misuse and suggest alt 11 years ago
Robert Schönthal 2b5a9aee6c some tiny refactorings 11 years ago
Robert Schönthal 3a1edd3776 rename command 11 years ago
Robert Schönthal e36d7f23ef escape shell args 11 years ago
Robert Schönthal 325c57f30c tiny refactorings 11 years ago
Robert Schönthal 25d062ccb4 some minor refactorings 11 years ago
Robert Schönthal 9a87aa1aaf added "home" command like the npm one, opens a package in your browser 11 years ago
Nils Adermann 0238aaf5ac Merge pull request #2629 from moranjk/master
Implemented Pre/Post Archive Script Events
11 years ago
Robert Boloc 5e5311a224 use optimize-autoloader config param in update and install commands 11 years ago
Robert Boloc 8a221854b1 changed name of the option to optimize-autoloader 11 years ago
Robert Boloc f67f04adfb added config option to optimize the autoloader always 11 years ago
Markus Staab 464fa1dedb added a indicator in the info-message on --optimize 11 years ago
James Moran ee7961a0f3 Implemented Pre/Post Archive Script Events
The script events `pre-archive-cmd` and `post-archive-cmd` can be used
to perform any tasks necessary when archiving the composer project.

This functionality can be used to run unit test or and other build
process before archiving, and can be used to distribute the archive
when completed
11 years ago
Eymen Gunay ad51db7b57 Fixed missing close tags 11 years ago
Gordon Franke 202701c391 Escape env value before passing it to system call 11 years ago
Jordi Boggiano 7c1042eef5 Detect color.ui always git setting as bad, fixes #2544 11 years ago
Jordi Boggiano b23742e30c Merge remote-tracking branch 'donquixote/feature/psr4-complete' 11 years ago
Jordi Boggiano a5c6319d46 Fix uninitialized var, fixes #2539 11 years ago
Jordi Boggiano 6ead35f189 Add version arg, docs for --rollback and reorganize the code, refs #2522 11 years ago
Jordi Boggiano 47a542ea89 Merge remote-tracking branch 'chr0n1x/feature-selfupdate-rollback' 11 years ago
Jordi Boggiano f85a366eb9 Finalize new autoloader-suffix config value, refs #2524, fixes #1413 11 years ago
chr0n1x d26355ef65 SelfUpdateCommand: removed unneeded return 11 years ago