CuyZ / Global-Ray

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:PHP 100.0%