Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 928 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 928 Bytes

Global Ray

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