PHPackages                             genxbe/kirby3-ray - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. genxbe/kirby3-ray

Abandoned → [genxbe/kirby-ray](/?search=genxbe%2Fkirby-ray)Kirby-plugin[Utility &amp; Helpers](/categories/utility)

genxbe/kirby3-ray
=================

Helper tool that enables ray on all the extendable methods.

2.0.4(11mo ago)226.6k11MITPHPPHP ^8.3

Since Mar 22Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/genxbe/kirby-ray)[ Packagist](https://packagist.org/packages/genxbe/kirby3-ray)[ RSS](/packages/genxbe-kirby3-ray/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (1)

Kirby Ray helper
================

[](#kirby-ray-helper)

Helper tool that enables ray on all extendable methods.

Ray is the fantastic dump debugger from our friends at Spatie. You can find more information about Ray on .

[![](https://camo.githubusercontent.com/ccff772e6305e50b0cf9ec9beecdcb84706966557a97d42e8ef8a59f842fdace/68747470733a2f2f7374617469632e676e782e636c6f75642f67656e782f6b697262792f6b69726279332d7261792d6c6f6f702e676966)](https://camo.githubusercontent.com/ccff772e6305e50b0cf9ec9beecdcb84706966557a97d42e8ef8a59f842fdace/68747470733a2f2f7374617469632e676e782e636c6f75642f67656e782f6b697262792f6b69726279332d7261792d6c6f6f702e676966)

Important note for Kirby &gt; 3.7 &lt; 5.0
------------------------------------------

[](#important-note-for-kirby--37--50)

This plugin overrides the `dump` helper from Kirby core. Please put the following at the top of your `index.php`.

```
define('KIRBY_HELPER_DUMP', false);
```

Options
-------

[](#options)

By default the ray helper won’t be enabled, you can enable it by setting `debug` to `true` or by adding the `enabled` option in the config file.

```
# site/config/config.php
return [
  'debug' => true,

  // OR //

  'genxbe.ray.enabled' => true,
];
```

Usage
-----

[](#usage)

Add `->ray()` after the page, field, or other object you want to parse in ray. This helper doesn’t interrupt your flow so whatever you are doing will still work if you add the helper. Pass a color as parameter if you want to enable color filtering in ray.

### Examples

[](#examples)

```
