1
0
Fork 0
Go to file
Helmut Hummel f12a5b8214
Expose path to autoload in a global var for binaries (#10137)
Always create proxy files for package binaries,
to avoid not working binaries in case the package
was installed from a path repository and is itself linked

If the binary is a PHP script, a global variable is now exposed,
which holds the path to the vendor/autoload.php file.
This variable can the be used in the binaries to include this file
without guessing where the path to the vendor folder might be.

Additionally it is now checked on binary creation whether
the reference binary has a shebang and if not, generates
a much simple proxy code, because the stream wrapper code,
that is required for PHP <8 to omit the shebang from the output,
can be skipped.

Fixes: #10119

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2021-11-25 09:53:03 +01:00
.github Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
bin Prevent uncaught exception when iconv/mbstring are missing; fixes #10168 (#10224) 2021-10-27 09:39:15 +02:00
doc Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
phpstan Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
res Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
src Expose path to autoload in a global var for binaries (#10137) 2021-11-25 09:53:03 +01:00
tests Get rid of gitignore/hgignore handling (fixes #7358), Add support for -export-ignore (fixes #9153) 2021-11-24 22:56:51 +01: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 Upgrade php-cs-fixer to 3.x and fix CS 2021-10-27 16:21:45 +02:00
.php-cs-fixer.php Upgrade php-cs-fixer to 3.x and fix CS 2021-10-27 16:21:45 +02:00
CHANGELOG.md Update changelog 2021-11-09 16:01:48 +01: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 Update branch name in badge link 2021-10-16 22:32:18 +02:00
UPGRADE-2.0.md Escape special characters in Markdown files 2020-10-24 11:53:20 +01:00
composer.json Upgrade PHPStan to 1.0 (#10253) 2021-11-14 20:42:24 +01:00
composer.lock Bump spdx-licenses 2021-11-23 17:01:51 +01:00
phpunit.xml.dist PHPUnit: move environment variable into PHPUnit config file (#10062) 2021-08-19 13:21:04 +02: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

Follow @packagist or @seldaek on Twitter for announcements, or check the #composerphp hashtag.

For support, Stack Overflow offers a good collection of Composer related questions, or you can use the GitHub discussions.

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