cuyz/global-ray

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.0) of this package.

Use Ray in any PHP script without requiring it in your projects.

0.1.0 2021-04-04 20:54 UTC

This package is auto-updated.

Last update: 2022-03-31 14:51:03 UTC


README

This package is abandonned — Spatie now provide their own implementation of that feature, see:

➡️ spatie/global-ray

Thank you Spatie for hearing our p·ray·ers! 🤗

Show old information

Use Ray in any PHP script without requiring it in your projects.

  1. Require this package globally with Composer:

    composer global require cuyz/global-ray

  2. Adapt this directive in your PHP configuration:

    # php.ini
    auto_prepend_file=${HOME}/.composer/vendor/cuyz/global-ray/prepend_ray.php
    
  3. 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