PHX (PHP NeXt) is a language extension of PHP. While PHP is fully supported by PHX it adds some additional syntax to the existing syntax set of PHP which increases productivity and readability of common PHP code.
Install PHX simply by adding the dependency to the project's composer.json
.
composer require phxlang/phx
Or install it globally:
composer global require phxlang/phx
There's a phx
binary which takes a file path as the first argument which will be the PHX script to be executed:
$ vendor/bin/phx your_script.phx
If you want to use PHX with composer
autoloading please install the phx/composer-phx-plugin.
It will add PHX autoloading support to composer.
Yes there are a few integration tests. Run them in the project root:
$ vendor/bin/phpunit
There's a doc dir with useful information.