This package is abandonned — Spatie now provide their own implementation of that feature, see:
Thank you Spatie for hearing our p·ray·ers! 🤗
Show old information
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();
$ git clone https://github.com/CuyZ/Global-Ray
$ cd Global-Ray
$ composer install --no-dev
$ composer refresh