Download the PHP package spatie/global-ray without Composer

On this page you can find all versions of the php package spatie/global-ray. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package global-ray

Enable ray(), dd() and dump() in all PHP files on your system

Latest Version on Packagist Tests Total Downloads

Ray is a wonderful desktop application that can help you debug applications faster. It can beautifully show you all debugging information, can pause your code, measure performance and a whole lot more.

To send debugging information to Ray, you can use the ray() function.

By installing spatie/global-ray, you can use ray() and all framework agnostic Ray functions in any PHP app or script on your system.

If you installed a specific Ray package, such as spatie/laravel-ray in your project already, then ray() will execute that specific version, so you can use still use framework specific things such as ray()->showQueries() to show all executed queries.

❤️ As a bonus the popular dd and dump functions will be made available globally too.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Installation

You can install the global Ray via composer:

When running global-ray install, we'll add a line in your php.ini to automatically load the functions provided by this package.

Usage

You can use ray() and all Ray's framework agnostic functions in any PHP file.

The rd(), dump() and dd() will also be available in any PHP project or script.

Using framework specific functionality

To use framework specific functionality, such as viewing queries in Laravel, or displaying mails in WordPress, you should still install the relevant package or library.

If a framework specific package is detected, it will be used instead of the global Ray.

How to uninstall

To uninstall you must first issue this command:

This will remove the line in php.ini that automatically loads ray() and related functions.

After that, you can uninstall the package itself using

Troubleshooting

If suddenly all of PHP scripts terminate very early with a strange error after upgrading PHP or switching to another version, then global ray might be the culprit.

As mentioned before, during install we slightly modify your php.ini. To manually uninstall global ray, remove the script named global-ray-loader.php in the auto_prepend_file directive in php.ini.

You find the location of your php.ini by executing this command:

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of global-ray with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
symfony/console Version ^4.2|^5.0|^6.0|^7.0
symfony/process Version ^4.2|^5.0|^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package spatie/global-ray contains the following files

Loading the files please wait ....