[EXP] Release v0.0.2
box, by Hyperf
Box is committed to helping improve the programming experience of Hyperf applications, managing the PHP environment and related dependencies, providing the ability to package Hyperf applications as binary programs, and also providing reverse proxy services for managing and deploying Hyperf applications.
This is still an early experimental version, have fun ~
You could download the builded box
binary file from Github Actions artifact of this project.
Click here to download ~
Please notice that box ONLY supports for Swow, but NOT Swoole, so your Hyperf application should created by hyperf/swow-skeleton or other else swow skeleton.
Commands
box get pkg@version
to install the package from remote automatically,pkg
is the package name, andversion
is the version of package,box get pkg
means to install the latest version of pkg, for example, runbox get [email protected]
to install the PHP 8.1, runbox get composer
to install the latest composer binbox build-prepare
to get ready forbuild
andbuild-self
commandbox build-self
to build thebox
bin itselfbox build <path>
to build a Hyperf application into a binary filebox config list
to dump the config filebox config get <key>
to retrieve the value by key from config filebox config set <key> <value>
to set value by key into the config filebox config unset <key>
to unset the config value by keybox config set-php-version <version>
to set the current PHP version of box, available value: 8.0 | 8.1box config get-php-version <version>
to get the current PHP version of boxbox start -u <upsteamHost:upstreamPort>
to start a proxy HTTP server for the upstream serverbox php <argument>
to run any PHP command via current PHP version of boxbox composer <argument>
to run any Composer command via box, the version of the composer bin depends on the last executedget composer
commandbox php-cs-fixer <argument>
to run any php-cs-fixer command via box, the version of the composer bin depends on the last executedget php-cs-fixer
commandbox version
to dump the current version of the box bin