You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
John Stevenson 07f59a9162
Preserve file permissions on Windows self-update (#9733)
Windows file operations result in different file permissions depending
if the file is copied or moved. A copy operation applies permissions
from the destination folder (or file if it already exists and does not
use inheritance), while a move operation generally preserves the source
file permissions.

Windows PHP `rename` uses MoveFileEx so if the user is running as an
admin and the destination is in a common (non-user) location, then the
permission for other users will be replaced by the admin user. Likewise
for the UAC elevation feature, which uses the cmd.exe `move` command.

This fix uses copy and delete operations on Windows, so that other users
can continue to run composer.phar
3 years ago
.github Try to fix windows CI again 3 years ago
bin Fix a type-juggling issue (#9498) 4 years ago
doc Link source from docs 3 years ago
phpstan Fix phpstan phpdocs issues (#9478) 4 years ago
res Disable full platform-check for extensions by default, now set to php-only, refs #9412 4 years ago
src Preserve file permissions on Windows self-update (#9733) 3 years ago
tests Revert autoload order fix, force bundled dependencies to be used over local dependencies, fixes #9721, fixes #9717 3 years ago
.editorconfig Enhancement: Add .editorconfig 6 years ago
.gitattributes Update HTTP URLs to their HTTPS if they already redirect automatically 4 years ago
.gitignore Add PHPCSFixer config 9 years ago
.php_cs Uses config data from Composer object whenever possible on ArchiveCommand 4 years ago
CHANGELOG.md Update changelog 3 years ago
CODE_OF_CONDUCT.md Add coc file to appease the github UI 4 years ago
LICENSE lets avoid silly commits in the future 8 years ago
PORTING_INFO Import initial partial port of the libzypp satsolver. 13 years ago
README.md Add a missing punctuation mark in README 4 years ago
UPGRADE-2.0.md Escape special characters in Markdown files 4 years ago
composer.json Allow php8 usage with Composer 1, fixes #9523 4 years ago
composer.lock Update deps 4 years ago
phpunit.xml.dist Build tweaks 4 years ago

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