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

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

Notifications You must be signed in to change notification settings

CuyZ/Global-Ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages