pronskiy / phpup

The PHP toolchain: run Composer, PHPStan, Rector, or any PHP script without having PHP installed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpup
The PHP Toolchain

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.

Installation

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

Usage

  • 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's vendor/bin/php based on the requirements in composer.json.

Contributing

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.

TODO

Credits

This package entirely relies on https://github.com/static-php and https://github.com/easysoft/phpmicro.

About

The PHP toolchain: run Composer, PHPStan, Rector, or any PHP script without having PHP installed.

License:Apache License 2.0


Languages

Language:PHP 72.6%Language:Shell 27.4%