All Projects → genxbe → kirby3-ray

genxbe / kirby3-ray

Licence: MIT License
Helper tool that enables ray on all the extendable methods.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kirby3-ray

kirby3-redirects
Setup HTTP Status Code Redirects from within the Kirby Panel
Stars: ✭ 14 (-17.65%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-instagram
Kirby 3 Plugin to call Instagram (or any other) API Endpoints
Stars: ✭ 20 (+17.65%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
k3-image-clip
Visually crop images with a handy image editor directly inside the panel
Stars: ✭ 38 (+123.53%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-doctor
Plugin to check health of your CMS installation
Stars: ✭ 19 (+11.76%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby-minify-html
Enable minify HTML output for Kirby 3
Stars: ✭ 27 (+58.82%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
kirby3-bolt
Kirby 3 Plugin for a fast Page lookup even in big content trees
Stars: ✭ 24 (+41.18%)
Mutual labels:  kirby3, kirby3-cms, kirby3-plugin
reporter-for-kirby
Gather feedback directly out of the Panel!
Stars: ✭ 27 (+58.82%)
Mutual labels:  kirby3, kirby3-plugin
k3-panel-view-extended
Quick fix for some missing features in the panel
Stars: ✭ 24 (+41.18%)
Mutual labels:  kirby3, kirby3-plugin
kirby3-similar
Find similar collection items based on similarity
Stars: ✭ 16 (-5.88%)
Mutual labels:  kirby3, kirby3-plugin
komments
A Kirby 3 comment plugin
Stars: ✭ 28 (+64.71%)
Mutual labels:  kirby3, kirby3-plugin
vuekit
Kirby 3 + Vue.js kit
Stars: ✭ 16 (-5.88%)
Mutual labels:  kirby3
kirby3-suncyclepages
kirby3 plugin to embargo pages until sunrise date and withdraw at sunset date
Stars: ✭ 17 (+0%)
Mutual labels:  kirby3-plugin
xslt-kit
XSLT Kit for Symphony
Stars: ✭ 23 (+35.29%)
Mutual labels:  kirby3-cms
enhanced-toolbar-link-dialog
Enhanced Toolbar Link Dialog is a Kirby 3 plugin to handle internal links
Stars: ✭ 34 (+100%)
Mutual labels:  kirby3-plugin
kirby3-many-to-many-field
This plugin allows you to create many-to-many relationships between pages in Kirby and synchronizes them on both sides.
Stars: ✭ 38 (+123.53%)
Mutual labels:  kirby3
kirby-securedpages
Protect pages for authenticated users
Stars: ✭ 28 (+64.71%)
Mutual labels:  kirby3
kirby-helpsection
Panel view to display help for users.
Stars: ✭ 35 (+105.88%)
Mutual labels:  kirby3-plugin
kirby-date-methods
Kirby 3 plugin providing field and page methods for formatting dates and creating PHP date objects
Stars: ✭ 13 (-23.53%)
Mutual labels:  kirby3-plugin
laravel-mix-kirby
Laravel Mix helper for Kirby
Stars: ✭ 23 (+35.29%)
Mutual labels:  kirby3
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (+17.65%)
Mutual labels:  kirby3-plugin

Kirby3 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://myray.app/.

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

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

<?php
  // Parse page in ray
  $myField = $page->ray()->myField();

  // Parse page in ray with the blue color filter active
  $myTitle = $page->ray('blue')->myTitle();

  // Parse the page and the field in ray
  $projects = $page->ray()->projects()->ray();
?>

<?= $site->seoOgImage()->ray() ?>

<?= $site->footerLinks()->toStructure()->ray() ?>

<?= $site->footerLinks()->ray('red')->toStructure()->ray('blue') ?>

Installation

Download

Download and copy this repository to /site/plugins/kirby3-ray.

Git submodule

git submodule add https://github.com/genxbe/kirby3-ray.git site/plugins/kirby3-ray

Composer

composer require genxbe/kirby3-ray

License

MIT

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].