315 Commits (1b7906e82db7782e52f541c4651c93c57fed6783)

Author SHA1 Message Date
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
Jordi Boggiano 666ac623f4 Merge remote-tracking branch 'digitalkaoz/show_command'
Conflicts:
	src/Composer/Console/Application.php
13 years ago
Jordi Boggiano d62a1ad1c1 Adjustments to the validate command 13 years ago
digitalkaoz 9a50fd6492 added validate task, closes #81 13 years ago
digitalkaoz 6451087039 added a show command for packages 13 years ago
Jordi Boggiano 283745d76d Do case-insensitive searches, avoid printing multiple results if multiple tokens match, highlight matched area 13 years ago
Jordi Boggiano 8675d4eb6a Make search token required 13 years ago
digitalkaoz 6c870e23e0 added search command, colorized ouput, tiny fixes 13 years ago
Jordi Boggiano aacdcb1570 Allow self-update to be called outside of a project context 13 years ago
jsor 28a8b3e4c5 Fix link collection 13 years ago
jsor e512e16e35 Rename flags after feedback in #132 13 years ago
jsor 9af21fd461 Install recommended deps by default and introduce flags for including/excluding required/recommended/suggested deps 13 years ago
Jordi Boggiano eef37c450f Fix error detection to support replaces and provides 13 years ago
Jordi Boggiano 0d304550b5 Clarify error message when packages are not found, fixes #128 13 years ago
Jordi Boggiano 68512714f4 Fix update command by using remove+install (and for now ignoring uninstalls of non-existing packages) 13 years ago
Jordi Boggiano f2662b193d Add --dry-run option and list all operations on --verbose 13 years ago
Jordi Boggiano 5b87a02767 Merge remote-tracking branch 'prodigitalson/master' 13 years ago
Jordi Boggiano 3b8ee5dd54 Use pretty name/version in lock file and debug:packages, fixes #98 13 years ago
Ant Cunningham e0400773f7 Adding support for configurable vendor path in composer.json. 13 years ago
Igor Wiedler 3c036428de replace current file in self-update command 13 years ago
Igor Wiedler b2f71dcb6a trim getcomposer.org/version output 13 years ago
Igor Wiedler b15ec17a06 implement a self-update command (closes #83) 13 years ago
Henrik Bjørnskov 25fa4ec60c Rename HelpCommand to AboutCommand
Because of the native Symfony\Component\Console\Command\HelpCommand it
is not possible to have a custom HelpCommand unless a lot of code is
duplicated. Therefor change the HelpCommand to AboutCommand.
13 years ago
Henrik Bjørnskov f85a31e2b0 Change the wording and link directly to packagist.org. 13 years ago
Henrik Bjørnskov 247f237f93 HelpCommand
Simple HelpCommand that displays the same information about Composer
that is availible in the README.md file.
13 years ago
Jordi Boggiano c8859240d2 Add InstallerInstaller, refactored AutoloadGenerator, fixes #59 13 years ago
Jordi Boggiano 1feebcafe2 Add update command, fixes #28 13 years ago
Jordi Boggiano 9108a3af7f Fix PlatformRepo packages not being seen as installed 13 years ago
Jordi Boggiano 6b6d6b6d82 Add --dev flag to InstallCommand to do source installs, fixes #26 13 years ago
Jordi Boggiano 1ca3e5e5e2 Generate a map separated from the autoloader, fixes #74
Also the loader is now returned by the autoload.php
13 years ago
Jordi Boggiano 1e0710b32f Move .composer into vendor (hardcoded for now) 13 years ago
Jordi Boggiano d16b928baf Add DebugPackagesCommand 13 years ago
Jordi Boggiano 220ab7f4ee Comments 13 years ago
Jordi Boggiano 8b0fee3f35 Fix platform packages not being added to the pool 13 years ago
Jordi Boggiano 33e7001d7e Fix typo 13 years ago
Jordi Boggiano c8cfa15f52 Use wrapped PlatformRepository only in the Solver 13 years ago
Igor Wiedler 9d238330b3 [autoload] refactor autoload generation code into a AutoloadGenerator 13 years ago
Igor Wiedler 72a1f66b7a rename installAs to target-dir 13 years ago
Igor Wiedler ea31039556 [autoload] autoloading prototype 13 years ago
Jordi Boggiano 2ebc795754 Error out when a package can not be found, refs #30 13 years ago
Jordi Boggiano cc769af923 Reuse normal installer logic for locked installs 13 years ago
everzet 96122aada8 refactored install command to use new Locker 13 years ago
Jordi Boggiano b9114e16be Fix typos, short var names etc 13 years ago
Jordi Boggiano 5623f3e69c Fix refactoring bugs 13 years ago
everzet 05ddfde868 Reflect latest refactoring changes in commands 13 years ago
Jordi Boggiano d27691a67f Fix namespace/use/typo issues 13 years ago
everzet 9deb10361f second batch of refactoring 13 years ago
everzet 6caa77fbbf installer refactoring 13 years ago
everzet 1e1ecb80b7 initial refactoring 13 years ago
Jordi Boggiano 6b5f61943a Lowercase package names in Request (fixes tests) 13 years ago
Jordi Boggiano 9b70b06bc8 Merge remote-tracking branch 'ryan/use_symfony_command'
Conflicts:
	bin/composer
	src/Composer/Command/InstallCommand.php
13 years ago
Jordi Boggiano 07e181c6eb Fix lowercase behavior 13 years ago
Ryan Weaver cf11b48306 Making several tweaks per @stof 13 years ago
Ryan Weaver f5b054985a Integrating the command system with Symfony's command system
Parts are still a WIP, as there are some embedded echo statements that should eventually be run through some sort of output interface.
13 years ago
Jordi Boggiano 900bed1c32 Normalize package names 13 years ago
Igor Wiedler 1e5aaefaf5 Force empty lock files to contain a JSON object
By default it will make it an array, since PHP does not distinguish between
arrays and hash(map)s.
13 years ago
Jordi Boggiano 071fa7a4d7 Merge Solver logic into the install command 13 years ago
Jordi Boggiano 49c3446ac1 Make use of new dist properties, refactored ZipDownloader 13 years ago
Jordi Boggiano 75428d9ad1 Slightly improve reporting when json config files can't be parsed 13 years ago
Jordi Boggiano 75410d13b7 Bugfix 13 years ago
Jordi Boggiano 14fdd4384a Better reporting during installation 13 years ago
Jordi Boggiano 04783d5c30 CI match on package names 13 years ago
Jordi Boggiano b53a3086b6 Minor refactorings and changes 13 years ago
Jordi Boggiano e03983697a Add base installer/downloader and ComposerRepository 13 years ago