🚀 A new era: Kirby 4 Get to know
Skip to content

Templating

Template Engines

Assets

Field methods

Modules

Syntax highlighting

Privacy

Feeds

Utilities

$pages->bettersearch($string, $options)

Better Search

by Bart Vandeputte

Search for full word combinations rather than just individual words.
  • K3
  • K4
<kb:date format="d/m/Y" field="date" />

Carver

by Hash&Salt

Write custom HTML tags, powered by PHP
  • K3
<?php snippet('detect-adblock') ?>

Detect Adblock

by oweb studio

Detect ad blockers and manage the warning messages that will be displayed for Kirby 3.
  • K3
  • K4
$point = Geo::point(49.4883333, 8.4647222);

echo $point->lat();
echo $point->lng();

GEO

by Kirby Team

This plugin adds basic geo search and conversion functionalities to Kirby
  • K3
  • K4
<?= $file->id3('artist') ?>

Gilmour

by Hash&Salt

Read ID3 tags from audio files and use it in your templates.
  • K3
<?= $page->myfield()->htmlPurify() ?>

HTML Purifier

by Bruno Meilick

Static class method, Uniform-Guard and Field-Method to filter your "dirty" HTML inputs to "clean" HTML.
  • K3
  • K4
// using the username
$users->toList();

// using the page title
$pages->toList();

// using the filename
$files->toList();

List Methods

by hana+nils

List Methods is a plugin providing methods to generate comma-separated list from collections like pages, users or files. It allows for …
  • K3
  • K4
<?php if ($page->isMobile()): ?>
  Nice mobile phone!
<?php endif ?>

Mobile Detect

by Bruno Meilick

Static class and page methods for using the mobile detect lib
  • K3
  • K4
<?= $page->random('words', 'lorem', 5) ?>

Random

by Bruno Meilick

Kirby tag and page method to generate various random values
  • K3
  • K4
📁 snippets
├─ 📄 header.controller.php
└─ 📄 header.php

Snippet Controller

by Lukas Kleinschmidt

Define snippet controllers in a similar way to page controllers.
  • K3
  • K4
snippetWhen('article', $category->isNotEmpty())

snippetWhen Helper

by hana+nils

snippetWhen is a helper function to conditionally embed snippets.
  • K3
  • K4

Tailwind Merge

by Tobias Möritz

Intelligently merge Tailwind classes without style conflicts in your Kirby templates
  • K3
  • K4
<button <?= attributes([
    'type' => $type ?? 'button',
    'class' => [
        'btn',
        'btn--large' => $size === 'large'
    ],
 ])->merge($attr ?? []) ?>>

Template Attributes

by Fabian Michael

Vue.js/Laravel-Blade-like attribute API for snippets and templates.
  • K3
  • K4

Template Stacks

by oweb studio

Template stacks allows you to push to named stacks which can be rendered somewhere else in another snippet or template.
  • K3
  • K4
return [
    'dgsiegel.kirby-tidy-html' => [
        'enabled' => true,
        'options' => [...]
    ]
];

Tidy HTML

by daniel g. siegel

Tidy HTML output for Kirby
  • K3
  • K4
$object->isPage();
$object->isUser();
$object->isFile();
$page->isType('article');

Type Methods

by hana+nils

Type Methods is a plugin helping to identify the type of an object, either page, user or file, in order to simplify logic in snippets that …
  • K3
  • K4