1
0
Fork 0
Go to file
Helmut Hummel 7c891701e6 Fix package sorting
PackageSorter weighs the importance of a package
by counting how many times it is required by other packages.
This works by calculating the weight for each package name.

However currently the package index of the package array
is currently passed the weigh function, which basically
disables package sorting.

The reason for that is, that a package repository previously
returned the package list as associative array with  package name as keys,
but currently just as an array with integer keys.

Therefore we must extract the package name from the package
before passing it to the weigh function.
2020-05-03 16:31:47 +02:00
.github Annotate phpstan errors in pull requests 2020-04-30 09:44:22 +02:00
bin Fix: Xdebug vs xdebug 2019-11-03 14:08:14 +01:00
doc Merge branch '1.10' 2020-05-01 18:08:22 +02:00
phpstan Fix phpstan config 2020-04-22 10:37:21 +02:00
res Add platform-check config option to disable platform_check.php generation, and disable it for Composer 2020-04-21 15:25:35 +02:00
src Fix package sorting 2020-05-03 16:31:47 +02:00
tests Fix package sorting 2020-05-03 16:31:47 +02:00
.editorconfig Enhancement: Add .editorconfig 2019-01-03 10:49:27 +01:00
.gitattributes Update HTTP URLs to their HTTPS if they already redirect automatically 2020-04-13 06:22:02 +07:00
.gitignore Add PHPCSFixer config 2015-04-15 01:22:20 +01:00
.php_cs Uses config data from Composer object whenever possible on ArchiveCommand 2020-02-10 13:15:58 -02:00
CHANGELOG.md Add docs about new runtime features 2020-05-01 10:18:54 +02:00
CODE_OF_CONDUCT.md Add coc file to appease the github UI 2020-04-23 11:14:08 +02:00
LICENSE lets avoid silly commits in the future 2017-01-19 12:10:26 +01:00
PORTING_INFO Import initial partial port of the libzypp satsolver. 2011-04-05 17:37:19 +02:00
README.md fix: workflow status badge (#8825) 2020-04-22 14:56:39 +02:00
UPGRADE-2.0.md Upadte changelog/upgrade to latest master state 2020-04-24 11:11:32 +02:00
composer.json Add a conflict on latest phpunit-bridge 2020-04-30 15:19:18 +02:00
composer.lock Update lock file 2020-04-30 15:21:55 +02:00
phpunit.xml.dist fix risky tests 2020-02-11 17:27:56 +08:00

README.md

Composer - Dependency Management for PHP

Composer helps you declare, manage, and install dependencies of PHP projects.

See https://getcomposer.org/ for more information and documentation.

Continuous Integration

Installation / Usage

Download and install Composer by following the official instructions.

For usage, see the documentation.

Packages

Find packages on Packagist.

Community

IRC channels are on irc.freenode.org: #composer for users and #composer-dev for development.

For support, Stack Overflow also offers a good collection of Composer related questions.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project and its community you agree to abide by those terms.

Requirements

PHP 5.3.2 or above (at least 5.3.4 recommended to avoid potential bugs)

Authors

See also the list of contributors who participated in this project.

Security Reports

Please send any sensitive issue to security@packagist.org. Thanks!

License

Composer is licensed under the MIT License - see the LICENSE file for details

Acknowledgments