313 Commits (06154550877f664b7de632590fcd583e2a503fec)

Author SHA1 Message Date
Jordi Boggiano fd38971777 Fix CS & simplify code 12 years ago
Tom Klingenberg 74ca58bcb6 Use of SPDX license identifiers. 12 years ago
Jordi Boggiano e7dc42a8a2 Order search results by score & highlight matches in description 12 years ago
Jordi Boggiano 4ecf55e180 Minor cleanup 12 years ago
Ryan Weaver 9e1ed5a52f [Command] Modifying the output of SearchCommand to make evenly-spaced package names for readability of results 12 years ago
Paul Seiffert 1713acf011 Coding standards and Cosmetics
Processing feedback given by @stof and @Seldaek.
12 years ago
Paul Seiffert e4a0de5df4 When using composer commands outside a Composer\Console\Application, one does not have an IOInterface object 12 years ago
Paul Seiffert 51e165c6c5 Composer\Command dependencies (application and io) should can now be injected. This way, Composer\Command objects can be used in a regular symfony2 Console\Application. 12 years ago
Jordi Boggiano 8ff497ac6f Skip filter_var on 5.3.2 since it is buggy 12 years ago
Danny Berger 8d6d155153 Add internal support for multiple default composer repositories. 12 years ago
Jordi Boggiano 4a55d85a2d Respect umask in chmod calls 12 years ago
Jordi Boggiano 120171ff5a Fix create project 12 years ago
Jordi Boggiano 7837be0621 Fix creation of ComposerRepository, refs #587 12 years ago
Jordi Boggiano 4cc45d3c37 Add require-dev and other missing links in show command 12 years ago
Povilas Balzaravicius Pawka 443ce65765 Fix fatal on show command 12 years ago
Jordi Boggiano 7f0a0857c0 Catch PharException as well in self-update failures 12 years ago
Jordi Boggiano a9ccfeb548 chmod new file when running self-update 12 years ago
Jordi Boggiano 7b87d2b573 Fix self-update saying the download is corrupt when it isn't 12 years ago
Jordi Boggiano d1f66073ca Update depends command 12 years ago
Jordi Boggiano 53191eb0fe Remove recommend, make suggest informational, add require-dev, fixes #78, fixes #510 12 years ago
H. Westphal 397fa05c5b Validate the integrity of the downloaded phar before overwriting 12 years ago
Jordi Boggiano 48ae8bf3ec Use pathinfo instead of substr 12 years ago
Jordi Boggiano 61708a1bb1 Code cleanup 12 years ago
Jordi Boggiano 278f0ec350 Fix git config parsing, fixes #525 12 years ago
Peter O'Callaghan 579b86ec27 Allows apostrophe (and single quote, since this is often used in lieu) in author name. 12 years ago
Jérémy Romey 260d7d434f Add a command for adding package to composer.json
Updated doc for require command
12 years ago
Luis Cordova f76c65914c cleaned up some getApplication()->getIO() into getIO()s 12 years ago
Igor Wiedler 0fe90c5d87 update some links to point to getcomposer.org 12 years ago
Jordi Boggiano ea2d46bcff Fix ComposerRepository calls, fixes #475 12 years ago
Nils Adermann 366e98288e Merge pull request #473 from Seldaek/gzip
Automatic gzip encoding support
12 years ago
Jordi Boggiano b12e73792c Handle SolverProblemException nicer 12 years ago
Jordi Boggiano 7f65dd7409 Use RemoteFilesystem everywhere we do http requests 12 years ago
Jordi Boggiano d291d65faf Add getIO proxy to base Command class 12 years ago
digitalkaoz 7cdb793b40 added support section to composer.json 12 years ago
Michael Wallner f65fe27097 fixed create-project with json file
the create-project command tried to instantiate a FilesystemRepository
with the json file as string instead of an JsonFile instance
12 years ago
Jérôme Tamarelle dd6608e4c2 Allow unicode characters for author in "composer init" command. 12 years ago
Igor Wiedler cd6eb49427 fix notice when running show command on package without keywords 12 years ago
Jordi Boggiano 09083089ff Merge remote-tracking branch 'digitalkaoz/show_command_keywords'
Conflicts:
	src/Composer/Command/ShowCommand.php
12 years ago
Jordi Boggiano 6b453906f0 Merge pull request #432 from digitalkaoz/issue_428
fluent api for installer options
12 years ago
Jordi Boggiano b024615e41 Merge pull request #433 from simensen/InstallerCleanup
Remove unneeded code from UpdateCommand
12 years ago
Jordi Boggiano 5dba49af54 Show package descriptions in show/search commands, merge similar packages in show, fixes #366 12 years ago
Jordi Boggiano 33c926c303 Show/Search command cleanups 12 years ago
digitalkaoz 3d56a5645e fixed cs 12 years ago
digitalkaoz 741a66e504 added description to show command, searching in description aswell 12 years ago
digitalkaoz a4f6314daa reverted command interfaces for installer refactoring 12 years ago
Beau Simensen 8fde0379ed Cleanup, not needed here. 12 years ago
digitalkaoz 673dd6312b fluent api for installer options 12 years ago
digitalkaoz e6e90bb174 added keywords to show command 12 years ago
Jordi Boggiano 5f2e42ec46 CS fixes, made EventDispatcher optional in factory method 12 years ago
Jordi Boggiano 2b2f7e1748 Merge remote-tracking branch 'simensen/Install' 12 years ago
digitalkaoz 38f866f1dd fixes #373 aswell 12 years ago
digitalkaoz 202ca60559 modified search listing (grouping packages) 12 years ago
Martin Hasoň 98d7e31c74 Sort versions before print 12 years ago
Beau Simensen b1c93d1f0a Fixed unused `use` per @stof and horrible bug that made this class no longer work. 12 years ago
Beau Simensen 3352066ece Use Installer for Create Project Command. 12 years ago
Beau Simensen 8a7d31706d Renamed Composer\Install to Composer\Installer 12 years ago
Beau Simensen 9404d8d593 Constructor, factory 12 years ago
Beau Simensen d1dea702c9 Moving install related code to Composer\Install 12 years ago
Jordi Boggiano ea593fdb10 Allow autodetection of the version 12 years ago
Jordi Boggiano 347f8feeec Update docs 12 years ago
Jordi Boggiano cb57c7bf42 Merge branch 'InstallAppCommand' of https://github.com/beberlei/composer 12 years ago
Jordi Boggiano 82dd1c1f7f Add relaxed schema for application packages that do not need to be distributed 13 years ago
Jordi Boggiano bd54e43d37 Rework JsonFile API slightly, avoid tokenizing in php if the syntax is valid 13 years ago
Jordi Boggiano 07a82c9223 Merge remote-tracking branch 'digitalkaoz/json_schema_validator' 13 years ago
Jordi Boggiano 774e9d0da6 Remove dependency on filter_var 13 years ago
Jordi Boggiano 30f612f672 Fix undef variable in search, fixes #374 13 years ago
Benjamin Eberlei 36ccd38aa7 Directly install dependencies 13 years ago
Benjamin Eberlei 24de082fd5 Refactored 13 years ago
Benjamin Eberlei db64917a83 Renamed install-project to create-project to differentiate from just "install". 13 years ago
Benjamin Eberlei 23719b3b1d Rename packagist url to repository url 13 years ago
Benjamin Eberlei f60fe5622a Add missing use stmt. 13 years ago
Benjamin Eberlei 1c67633c70 Refactored downloader code and made packagist configuration flexible and validated. 13 years ago
Benjamin Eberlei bbf745f3e6 Add command to install a package as a new project into a non-existant directory. This fetches the given package from packagist or a different packagist-source and installs it into a given path. 13 years ago
Jordi Boggiano 0e6cf61b67 Avoid showing duplicates versions 13 years ago
Jordi Boggiano 1228c04984 Add support for extra.branch-alias config to remap master on 2.1.x for example 13 years ago
digitalkaoz 6929c42848 added schema/syntax validation for composer.json 13 years ago
Jordi Boggiano 956b54e516 Use policy rule instead of stacking up another repo to prioritize aliased packages 13 years ago
Jordi Boggiano 59d2b1145c Add lock file alias support and a bunch of fixes 13 years ago
Jordi Boggiano f9fc9695e9 Wrap the package in an aliased package instead of replacing 13 years ago
Jordi Boggiano 82054f2060 Add aliasing: `foo as bar` will require foo and automatically make it replace the bar version 13 years ago
Jordi Boggiano 5eb333680b Rename findPackagesByName to findPackages and allow version arg 13 years ago
Nils Adermann de1765aa48 Remove workaround error detection in install command 13 years ago
Jordi Boggiano 621388e3be Fix warning when no package to update is found 13 years ago
Nils Adermann 39aa5c0752 Merge pull request #329 from Seldaek/new_dev
[BC Break] New dev handling
13 years ago
Jordi Boggiano 2976bd82b0 Simplify code 13 years ago
Nils Adermann 509188c112 Use updateAll request method in upddate mode in install command 13 years ago
Jordi Boggiano c95b4d05fd Fix forcing of the source-ref from lock file 13 years ago
Jordi Boggiano 4233a4823d Skip platform repo and only force-update packages that have a new source ref 13 years ago
Jordi Boggiano 646d01658a Rename source_ref to source-ref 13 years ago
Jordi Boggiano 88b018068c Force dev packages to update to latest ref on update 13 years ago
Jordi Boggiano 496188f714 Force installs from lock to reinstall dev packages from the exact locked reference 13 years ago
Jordi Boggiano fd0bf14eb2 Support both require and requires as depends link-type arg 13 years ago
Jordi Boggiano 1e6633b3c3 Allow search command to work without a composer.json 13 years ago
Jordi Boggiano ee7b68c049 Allow people to manually enter requirements 13 years ago
Jordi Boggiano 9a2204cd74 Improve username detection and other minor fixes 13 years ago
Jordi Boggiano f48cfb4fdf Avoid requirement on composer.json to search for requirements 13 years ago
Jordi Boggiano 23aade21f0 Show empty default value when one is specified 13 years ago
Jordi Boggiano 95883f058c Merge remote-tracking branch 'justinrainbow/init_command' 13 years ago
Jordi Boggiano 01cb2c5dd7 Fix typo 13 years ago
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
13 years ago
Beau Simensen 81d41fc442 Rename --dev to --prefer-source 13 years ago
Justin Rainbow 3a5d09a8b0 Removing the 'writeSection' method from 'DialogHelper' 13 years ago
Justin Rainbow 7a0a1788e3 Moved DialogHelper into the base Application 13 years ago
Justin Rainbow 9ec641659e Validating package name input for init command 13 years ago
Justin Rainbow 950bbcbed9 Init now asks user if they want to ignore the vendor dir 13 years ago
Justin Rainbow cd9c86c70c Adding author defaults to init command 13 years ago
Justin Rainbow 6ff7694de1 Fixing error when no requirements are defined 13 years ago
Justin Rainbow 2fbd9490b1 Adding a requirement definition stage to init command 13 years ago
Justin Rainbow 10ca974f33 Quick change to the help text for InitCommand 13 years ago
Justin Rainbow 34bbfb70d2 Initial version of InitCommand
This command allows a user to create a basic composer.json
definition easily.  The idea is to create a command similar
to the `npm init` command.

This version only has `name` and `description` support.
Additional fields will be added such as `require`, `authors`,
`version`, etc.
13 years ago
Jordi Boggiano 6971657ad0 Merge debug:packages into the show command (if used without package arg) 13 years ago
Jordi Boggiano 247d19e2f8 Add type hints 13 years ago
Jordi Boggiano 93baa38d5c Allow show command to work without a composer.json 13 years ago
Jordi Boggiano f761bf8d99 Simplify install() signature 13 years ago
Beau Simensen e1370be7a0 Continued refactoring of install() method, mainly by way of adding Composite Repository
* Rewritten `install()` method now takes a repository instead of a list of packages (per @nadermen)
 * Added Composite Repository
 * Added tests for Composite Repository
 * Removed "local repository" concept from Platform Repository
 * Removed some `use` statements for Platform Repository where it was not actually being used
13 years ago
Beau Simensen 473f127ff1 Super simplified, works, but needs refactoring w/ Composer Repository 13 years ago
Beau Simensen df72919ba3 @naderman says this is wrong. 13 years ago
Beau Simensen 57ffc9d59b Changed some variable names, continue 2, locked install changed
Changed some some instances of the $package variable name to be
able to be consistent in all branches of the "add to request"
section of code.

Updated an instance of "break" to "continue 2" as it was resulting
in the same package getting both update() and install() called
on request. Seems like this is probably not needed, should be
just one or the other? (could be way wrong on this)

Gave "locked" branch of the update/locked/install code some
logic to handle internally installed packages.
13 years ago
Beau Simensen c1ba2be345 Provide the ability to specify internally installed packages (i.e., embedded in phar) 13 years ago
Beau Simensen c94d867c07 Make install method self contained
Experimental: Updated `install()` method to accept its Composer
and input option dependencies as method arguments.
13 years ago
Jordi Boggiano 385075cda3 Cosmetic fixes 13 years ago
Jordi Boggiano d52feb1a9f Merge remote-tracking branch 'digitalkaoz/issue_209' 13 years ago
Jordi Boggiano 7add1001ae Refactor scripts 13 years ago
François Pluchino f017074655 Remove package trigger
Rename GetTriggerEvent on TriggerEvent
Remove get/set Application in TriggerEvent
Remove get/set Dispatcher in TriggerEvent
Add get/set Composer in TriggerEvent
Add get/set IO in TriggerEvent
Restaure ConsoleIO and IOInterface
Update Faq
13 years ago
François Pluchino 2f6a3ce8b9 Add system trigger 13 years ago
digitalkaoz 3d43bdce45 refactored install 13 years ago
digitalkaoz 4d0fae688e removed replace, reinstalling as install 13 years ago
digitalkaoz 30e89a2402 fixed broken packages on filesystem 13 years ago
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 13 years ago
Jordi Boggiano edf948454b Remove IO from Solver, debug methods don't need it 13 years ago
François Pluchino 8053878b6a Merge branch 'master'
Conflicts:
	src/Composer/Console/Application.php
13 years ago
François Pluchino 0f9dcc9618 Remplace all echo with writeln method of IO 13 years ago
François Pluchino 7888ec5313 Add Authentification in FileDownloader 13 years ago
Christophe Coevoet 1fdb7aef56 Changed the ShowCommand to use the new method 13 years ago
Jordi Boggiano cc1dbbc36f Add --link-type option to select link types in DependsCommand 13 years ago
Hugo Hamon 747abf6843 [Command] removed unused local variable $composer in UpdateCommand::execute() method. 13 years ago
Hugo Hamon c993f3e92d [Command] removed unused local $recommendedDependencies variable in DependsCommand::getReferences() method. 13 years ago
Jordi Boggiano 83a106bd79 Add recommends and package versions to the depends command 13 years ago
Jordi Boggiano 81d80b2a04 Merge remote-tracking branch 'justinrainbow/depends_command' 13 years ago
Jordi Boggiano 462ebdf752 Detect lock file changes and warn users on install, fixes #75 13 years ago
Nils Adermann 855b1cb9d3 Merge pull request #173 from Seldaek/update
Fix update, fixes #125
13 years ago
Justin Rainbow 981477dd17 New 'depends' command added
Basic command to display where a given package is referenced.
This helps in figuring out where a package is used, and even
can help in troubleshooting dependency issues.
13 years ago
Jordi Boggiano 9b2694351b Less confusing error message 13 years ago
Jordi Boggiano 8cfbf9e198 Fix update, fixes #125 13 years ago
Jordi Boggiano 3b9dd59da3 Fix typo 13 years ago
Jordi Boggiano 9452a94e30 Fix regression in previous merge 13 years ago
Igor Wiedler 85ec42bac3 display highest package version by default on show command 13 years ago
Beau Simensen 2791e57930 Updated lockfile message for "composer install" command
The behaviour of the lockfile was a little confusing to me.
I assumed if I added a new dependency I should run
'composer install' again. It was not immediately obvious
from the output of the install command what was going on
and I was confused why my new package had not been installed.

I understand that a better fix would be to compare
composer.json to the lockfile, but until that has been
implemented this will maybe help some newbies out.
13 years ago
Jordi Boggiano a2caa7c5e6 Adjustments to the show command 13 years ago
Jordi Boggiano 7caf61fc66 Set return code to non-zero when validate fails 13 years ago