Skip to content

Instantly share code, notes, and snippets.

@adamkiss
adamkiss / index.php
Last active January 2, 2023 15:19
Kirby: easy Simple Snippets plugin
<?php
use Kirby\Cms\App;
App::plugin('adamkiss/simple-snippets', []);
if (! function_exists('s')) {
/**
* Short, auto-return snippet call with support for auto-merging certain parameters
*
* @param string $snippetName

Kirby 3 CLI

Add the function below to your ~/.bashrc or ~/.zshrc file.

Usage:

  • kirby <branch>
  • kirby