Phpup is a single-file binary with zero dependencies that includes Composer and other PHP tools. It also allows installing a per-project PHP based on your composer.json
.
You don't need to have PHP or anything at all on your system to run it.
Warning
Under heavy development
Currently, this is an MVP, and only macOS aarch64 is supported.
Download phpup
binary from the release page and put it into a directory on your PATH, so you can simply call phpup
from any directory.
curl -OL https://github.com/pronskiy/phpup/releases/latest/download/phpup
chmod +x phpup
sudo mv phpup /usr/local/bin/phpup
phpup list
โ See the list of available commands.phpup <file>
โ Run any php file. ๐งphpup composer
โ Composer that does not require PHP to be installed.phpup phpstan
โ PHPStan that does not require PHP. ๐งphpup rector
โ Rector that does not require PHP. ๐งphpup locus
โ Installs PHP binary under your project'svendor/bin/php
based on the requirements in composer.json.
Contributions are very welcome! However, it's recommended to first create an issue describing the idea โ let's find the best approach together.
See some ideas in the todo list below.
-
Run php script pronskiy#1
-
Support Rector ๐ง
-
Support PHPStan ๐ง
-
Accept a reference to a packagist/gh repo, to be able to run its scripts/bin/
-
Support Windows
-
Add help command
-
Extract packing with box and micro php to a stand-alone GitHub action
-
Add more tools
- PHP-CS-Fixer
- PHPUnit
-
Reduce size of the resulting binary
-
Check microphp's patches:
- Bypass cli SAPI name checks
- static_opcache
-
Support parallel run for Rector
-
Support Linux
This package entirely relies on https://github.com/static-php and https://github.com/easysoft/phpmicro.