60 Commits (5c42cc8c8c3f5ad6da9704109bc2a0218c63475b)

Author SHA1 Message Date
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
Aydin 432cdbcb31 Allow to select virtual packages 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
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
Kayla Daniels ec758d95b0 updated package variable in gathering requirements 10 years ago
Haralan Dobrev 4abaaaf76d Use default description and license from CLI args
When running `composer init` with `--description` and `--license` arguments
on the command line they are later suggested as defaults during the
interactive flow. However when you press Enter (to use the default suggesstion)
Composer does not use it, but instead skip them entirely from the `composer.json`
generation.

This change provides a default argument not only to `DialogHelper::getQuestion()`,
but also to `DialogHelper::ask()`.
11 years ago
Przemysław Piechota 95cbb177dd Init command - diacritical marks in author name 11 years ago
Jordi Boggiano 1dd8bffce5 CS fixes 11 years ago
Francesc Rosàs 9aa0aba77c Extract email validation into a method 11 years ago
Jordi Boggiano be861f090a Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646 11 years ago
Miklós Márton 67e5e0588d Fixes #1347 (new license argument / dialog for init command) 11 years ago
Jordi Boggiano 4c35f54356 Simplify regex pattern 12 years ago
Grégoire Pineau fcac93b3f1 Fixed InitCommand::addVendorIgnore 12 years ago
Jordi Boggiano 247b02d077 Fix minimum-stability handling in InitCommand, fixes #1421 12 years ago
Jordi Boggiano e7f4768668 Only ask for gitignore if the current dir is a git repo, fixes composer/satis#44 12 years ago
Igor Wiedler 423728440b Rename init --minimum-stability to --stability
This is consistent with create-project.
12 years ago
Jordi Boggiano dee9bcb9f1 Add --stability and support for package:version and package=version to create-project, fixes #957 12 years ago
Colin Frei e4b8fe85a1 Check --name value if it's passed in, as that's not validated anywhere 12 years ago
Colin Frei b4cf3d06fd Make sure suggested value conforms to allowed values
Regex for replacement from https://github.com/composer/packagist/blob/master/src/Packagist/WebBundle/Entity/Package.php#L191
12 years ago
Colin Frei 6c4bdd14cd require $name to be lowercase 12 years ago
Nils Adermann 01593e0628 Merge pull request #1015 from Seldaek/memory
Reduce memory usage by only loading packages that are actually needed, fixes #456
12 years ago
Jordi Boggiano 41fc6ff9ee Fix formatRequirements return value, fixes #1026 12 years ago
Jordi Boggiano c31d588b7d Update init and depends commands to use the new filterPackages method 12 years ago
Jordi Boggiano de4e9c4022 Fix InputOption requirement flags 12 years ago
Beau Simensen d0773b20df Added minimum-stability option to init command, minor bug fixes
Added the ability to specify `minimum-stability` as an option.
Also added `homepage` and `require-dev` to the whitelist and
added necessary code to format dev requirements only if dev
requirements are present.
12 years ago
Jordi Boggiano ffecd39d33 Refactor repositories handling in config/factory/loader, fixes #828, fixes #826 12 years ago
Jordi Boggiano 3ac11b932c Expose default repositories in system config file 12 years ago
Jordi Boggiano 4a6ae454c2 Merge remote-tracking branch 'dpb587/multiple-repos'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Package/Loader/RootPackageLoader.php
	tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php
12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Igor Wiedler a0c90bad0f Fix normalization in init command with --no-interaction and --require
When calling `composer init --no-interaction --require foo/bar:dev-master` it
would fail because in non-interactive mode it would only split on space.
12 years ago
Jordi Boggiano 1443ea25f9 Make sure a constraint is provided with input requirements 12 years ago
Jordi Boggiano 27f8019dbd Refactor init & require commands 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 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 7837be0621 Fix creation of ComposerRepository, refs #587 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
Jordi Boggiano ea2d46bcff Fix ComposerRepository calls, fixes #475 12 years ago
Jérôme Tamarelle dd6608e4c2 Allow unicode characters for author in "composer init" command. 12 years ago
Jordi Boggiano 774e9d0da6 Remove dependency on filter_var 12 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