Global Ray
Use Ray in any PHP script without requiring it in your projects.
-
Require this package globally with Composer:
composer global require cuyz/global-ray
-
Adapt this directive in your PHP configuration:
# php.ini auto_prepend_file=${HOME}/.composer/vendor/cuyz/global-ray/prepend_ray.php
-
Use Ray inside any PHP script:
ray('Hello world!')->blue();
Build the project
$ git clone https://github.com/CuyZ/Global-Ray
$ cd Global-Ray
$ composer install --no-dev
$ composer refresh