Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report

spatie/ray 1.41.1

Debug with Ray to fix problems faster
Package summary
Share
0
issues
0
licenses
Package created
7 Jan 2021
Version published
25 Jan 2024
Maintainers
1
Total deps
0
Direct deps
0
License
MIT
Generating a report...
Hold on while we generate a fresh audit report for this package.

Frequently Asked Questions

What does spatie/ray do?

The Spatie/Ray package is a powerful tool developed for any PHP application. Its primary purpose is to help developers debug their applications quickly and effectively by sending messages to the Ray app. Ray, as the desktop app, can be utilized across various platforms such as WordPress, Laravel, PHP, and JavaScript functions. It provides valuable insights by showing models, mails, queries, among others, in Laravel. Besides, the app proves handy in debugging either locally or via SSH and enables you to measure the performance and set breakpoints.

How do you use spatie/ray?

To make use of the spatie/ray package, you'd first need to install it in your PHP application. Since it hasn't been specified, please follow the general steps for installing PHP packages using composer.

Once the package is installed, you'll need to import it in your project to start using it by calling the ray function whenever you wish to debug something.

Please note, the below-mentioned illustration is a generalized representation, the actual usage might vary based on functionalities.

<?php

// Import the package
use Spatie\Ray;

// use ray function to debug. 

ray('This is my debug message');

// When working with data

$data = [
    'foo' => 'bar',
];

ray($data);

Where are the spatie/ray docs?

The developer's complete detailed documentation can be accessed here. It comprises useful instructions, guidelines and best practices on how to effectively use the spatie/ray package while handling your PHP application's debugging process. It is highly advised to go through the documentation in order to leverage the benefits of the package to its fullest.