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

Mobile Detect

<?php if ($page->isMobile()): ?>
  Nice mobile phone!
<?php endif ?>

Static class and page methods for using the mobile detect lib

Related plugins

$url  = 'https://getkirby.com/kosmos.rss';
$feed = new FeedReader($url);

dump($feed->articles());

FeedReader

by Uwe Gehring

Plugin to show feeds. The FeedReader plugin provides an unified access to the elements of a feed. A feed might be of type RSS, Atom or JSON …
  • K3

Kirby Template Sugar

by Arno Schlipf

Syntactic sugar for Kirby templates that makes working with snippets and slots a breeze.
  • K3
  • K4

Kirby Vite

by Arno Schlipf

A set of helper functions to get the correct path to your versioned css and js files generated by Vite.
  • K3
  • K4
page('blog')->children()->feed([
    'title'       => 'Latest articles',
    'link'        => 'blog'
]);

Feed and Sitemap

by Bruno Meilick

Generate a RSS or JSON-Feed or XML-Sitemap from a collection of pages
  • K3
  • K4
<?= $page->thumbsUp()->ecco('👍', '👎') ?>

Field Ecco

by Bruno Meilick

Field method to echo strings based on the boolean value of a field
  • K3
  • K4
<article id="{{ page.slug }}">
  <h2>{{ page.title }}</h2>
  {{ page.text }}
</article>

Handlebars Templates

by Bruno Meilick

Component, snippet and page method for semantic templates with Handlebars and Mustache
  • K3
  • K4
<?= $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
<?= $page->random('words', 'lorem', 5) ?>

Random

by Bruno Meilick

Kirby tag and page method to generate various random values
  • K3
  • K4
$pages->bettersearch($string, $options)

Better Search

by Bart Vandeputte

Search for full word combinations rather than just individual words.
  • K3
  • K4
return [
    'dgsiegel.kirby-tidy-html' => [
        'enabled' => true,
        'options' => [...]
    ]
];

Tidy HTML

by daniel g. siegel

Tidy HTML output for Kirby
  • K3
  • K4

Laravel Mix Helper

by Diverently

Use the mix helper function to get the correct path to your versioned CSS and JS files generated by Laravel Mix.
  • 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

Consent Gate

by fendinger

This plugin blocks the loading of content from external sources. The content is only loaded if a consent is accepted (GDPR compliant). The …
  • K3
$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
foreach ($page->fruits()->toChoices() as $fruit) {
    echo $fruit;
}

Choices

by hana+nils

Choices is a plugin that provides methods to manage field options in the frontend. For any field – like select, multiselect or checkboxlist …
  • K3
// 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
snippetWhen('article', $category->isNotEmpty())

snippetWhen Helper

by hana+nils

snippetWhen is a helper function to conditionally embed snippets.
  • K3
  • K4
<?= $page->text()->toTree()->level(3) ?>

Tree Methods

by hana+nils

Tree Methods converts field values to HTML and helps adapting the resulting markup by changing headline hierarchy, wrapping and filtering …
  • 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

XSLT Templates

by hana+nils

Template component for XSLT support in your templates. It let's you specify the needed data for each blueprint which is then provided as …
  • K3
<kb:date format="d/m/Y" field="date" />

Carver

by Hash&Salt

Write custom HTML tags, powered by PHP
  • K3
<?= $page->text()->chopper(20) ?>

Chopper

by Hash&Salt

Create excerpts from fields and define the HTML tags you wish to keep
  • K3
  • K4
<?= $file->id3('artist') ?>

Gilmour

by Hash&Salt

Read ID3 tags from audio files and use it in your templates.
  • K3
fields:
  example:
    label: Paste code here
    type: blocks
    fieldsets:
      - code

Highlighter

by Johann Schopplich

Server-side syntax highlighting for the Kirby code block & KirbyText
  • K3
  • K4

Blade Templates

by Lukas Leitsch

Use Laravel Blade templates for your Kirby site
  • K3
  • K4
<!doctype html>
<head>
  <?= vite(['assets/css/app.css', 'assets/js/app.js']) ?>
</head>

Laravel Vite

by Lukas Kleinschmidt

Use the laravel-vite-plugin in your Kirby application.
  • 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

Cookie Banner

by Michael Engel

Integrate a user-friendly cookie banner into your Kirby website with ease. This simple solution allows for effortless incorporation …
  • K3
  • K4
<?= $page->myfield()->inherit() ?>

Kirby Inherit

by Microman

If the current field is empty or does not exist, it gets the same field from the parent pages. It goes all the way to the site.
  • K3
  • K4
<?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

Plates

by oweb studio

Plates native PHP template engine/system for Kirby 3.
  • 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
<?php snippet('cookie') ?>

Cookie Approval

by Timo Schneider

Add a cookie approval banner to your templates
  • K3
  • K4
foreach ($page->similar($options) as $p) {
  echo $p->title();
}

Similar

by Sonja Broda

Find items related to the current item based on similarity between fields
  • K3
  • K4
// site/snippets/component.php
<div <?= merge('h-full w-full bg-neutral-100', $class) ?>></div>

// site/templates/default.php
<?php snippet('component', ['class' => 'w-1/2']) ?>

// output
<div class="h-full bg-neutral-100 w-1/2"></div>

Tailwind Merge

by Tobias Möritz

Intelligently merge Tailwind classes without style conflicts in your Kirby templates
  • K3
  • K4

Twig Templates

by wearejust

Add support for Twig templates to your Kirby installation
  • K3
  • K4
<?= $page->title()->kirbytextWrap('h1') ?>

KirbytextWrap

by Yoan Malié

Parse Kirbytext and wrap the result in an HTML element of your choice
  • K3

Cookieconsent

by Zephir Software Design AG

Integrates the orestbida/cookieconsent JS plugin into Kirby 3. Comes with two pre-configured types (simple / customizable) to get you …
  • K3
  • K4

Other plugins by Bruno Meilick

Kirby::plugin('bnomei/example', [
    'blueprints' => autoloader(__DIR__)
                      ->blueprints(),
    'snippets' => autoloader(__DIR__)
                      ->snippets(),
    // other extensions
]);

Autoloader

by Bruno Meilick

Helper to automatically load various Kirby extensions in a plugin
  • K3
  • K4
return Field::make(FieldTypes::TEXT)
    ->label('Description')
    ->toArray();

PHP Class-based Blueprints

by Bruno Meilick

PHP Class-based Blueprints for better type safety and code completion
'bnomei.boost.cache' => [
    'type'     => 'apcu',
],
'cache' => [
    'uuid' => [
        'type' => 'apcu',
    ],
],

Boost

by Bruno Meilick

Boost the speed of Kirby by having content files of pages cached and a fast lookup based on uuids
  • K3
  • K4

CloudConvert

by Bruno Meilick

Plugin to convert your files to other file types (i.e. mov to animated gif), using cloudconvert.com
  • K3
  • K4
$mostPopularPage = $kirbyCollection
    ->sortBy('viewcount')->last()
    ->viewcount()->toInt();

// with collect plugin
$mostPopularPage = $kirbyCollection
    ->collect()->max('content.viewcount');

Collect

by Bruno Meilick

Adds support for Laravel collections to Kirby
  • K3
  • K4
return [
    'bnomei.securityheaders.headers' => [
        'X-Frame-Options'        => 'SAMEORIGIN',
        'X-XSS-Protection'       => '1; mode=block',
        'X-Content-Type-Options' => 'nosniff',
        ...
    ]
];

Content Security Policy

by Bruno Meilick

Simplify the content security policy headers setup for your website
  • K3
  • K4
env('APP_DEBUG');

DotEnv

by Bruno Meilick

Store project credentials and environment variables in a .env file and access them in Kirby
  • K3
  • K4
page('blog')->children()->feed([
    'title'       => 'Latest articles',
    'link'        => 'blog'
]);

Feed and Sitemap

by Bruno Meilick

Generate a RSS or JSON-Feed or XML-Sitemap from a collection of pages
  • K3
  • K4
<?= $page->thumbsUp()->ecco('👍', '👎') ?>

Field Ecco

by Bruno Meilick

Field method to echo strings based on the boolean value of a field
  • K3
  • K4
$page->file('ukulele.pdf')->fingerprint();

Fingerprint

by Bruno Meilick

File method and css/js helpers to add hashes to assets and files
  • K3
  • K4

Fontselector

by Bruno Meilick

Select font family and font weight with two synced fields
  • K3
  • K4
<article id="{{ page.slug }}">
  <h2>{{ page.title }}</h2>
  {{ page.text }}
</article>

Handlebars Templates

by Bruno Meilick

Component, snippet and page method for semantic templates with Handlebars and Mustache
  • K3
  • K4
<html <?= $site->langAttr() ?>>
  <head>
    <meta charset="utf-8">
    <?= $page->htmlhead() ?>
  </head>
  ...

HTMLHead

by Bruno Meilick

Add a best-practice HTML head element to your templates, extendable with snippets
  • K3
  • K4
<?= $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

Janitor

by Bruno Meilick

Run command – like cleaning the cache – from within the Panel via a customizable button, directly in PHP code or with a cronjob
  • K3
  • K4
$key  = crc32($page->url());
$data = lapse($key, function () {
    return [1, 2, 3];
});

Lapse

by Bruno Meilick

Cache any data until the set expiration time
  • K3
  • K4

Mailjet

by Bruno Meilick

Send transactional SMS, transactional E-Mail and Campaigns with Mailjet
  • K3
  • K4
monolog()->info('test-' . time()), [
    'title' => $page->title(),
    'page'  => $page->id()
]);

Monolog

by Bruno Meilick

Use Monolog to log data to files, databases, notifications and more.
  • K3
  • K4

MySQL Cache Driver

by Bruno Meilick

MySQL based Cache-Driver
  • K3
  • K4
<?= $page->counterImage() ?>

Pageview Counter

by Bruno Meilick

Track Page view count and last visited timestamp
  • K3

PHP Cache Driver

by Bruno Meilick

PHP based Cache-Driver
  • K3
  • K4
plop blueprint $ pages blogpost
plop template $ blogpost
plop content "Nice!" blog blogpost
plop content _ blog blogpost
plop snippet $ slideshow

Plopfile

by Bruno Meilick

CLI tool to generate and append to various files for Kirby3 CMS using Plop.js
  • K3
  • K4

Posthog

by Bruno Meilick

Connect Kirby to Posthog via PHP or Javascript
  • K3
  • K4

Postmark

by Bruno Meilick

Send transactional E-Mail with Postmark
  • K3
  • K4
fields:
  # current page
  qrcode: qrcode

QR Code

by Bruno Meilick

Generate QRCodes. The included Panel field will show the QRCode and trigger download on click.
  • K3
  • K4
<?= $page->random('words', 'lorem', 5) ?>

Random

by Bruno Meilick

Kirby tag and page method to generate various random values
  • K3
  • K4

Recently Modified

by Bruno Meilick

Kirby 3 Plugin to view recently modified pages by current User (or other collections)
  • K3
  • K4
sections:
  redirects:
    extends: plugin-redirects3xx

Redirects

by Bruno Meilick

Setup HTTP status code redirects from within the Panel
  • K3
  • K4

Redis Cache Driver

by Bruno Meilick

Redis based Cache-Driver
  • K3
  • K4
return [
    'bnomei.robots-txt' => [
        'content' => '...'
    ]
];

Robots.txt

by Bruno Meilick

Manage the robots.txt from Kirby's config file
  • K3
  • K4

Seobility – Keyword check

by Bruno Meilick

Plugin to use the free and paid API of Seobility.net like the keyword check
  • K3
  • K4

SQLite Cache Driver

by Bruno Meilick

SQLite based Cache-Driver
  • K3
  • K4
site()->stopwatch()->start('myevent');
// some code to profile
site()->stopwatch()->stop('myevent');

echo site()->stopwatch()->duration('myevent');

Stopwatch

by Bruno Meilick

Profile your Kirby 3 CMS code with precision in milliseconds (or seconds).
  • K3
  • K4

Storybook

by Bruno Meilick

Generate Storybook stories from snippets and templates
  • K3
  • K4

UTM Tracking

by Bruno Meilick

Automatically track events from URLs with UTM parameters and view statistics about them right in the panel.
  • K3