PHPackages                             jg/kirby-wrappers - 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. jg/kirby-wrappers

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

jg/kirby-wrappers
=================

Kirby Wrapper Tags

v2.0.1(5y ago)181.8k3[2 issues](https://github.com/jongacnik/kirby-wrappers/issues)MITPHP

Since Jun 30Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Kirby Wrappers
==============

[](#kirby-wrappers)

Simple wrapper tags for Kirbytext.

`(wrapper)(/wrapper)` → ``

Installation
------------

[](#installation)

```
composer require jg/kirby-wrappers

```

 Other installation methods### Download

[](#download)

Download and copy this repository to `/site/plugins/kirby-wrappers`.

### Git submodule

[](#git-submodule)

```
git submodule add https://github.com/jg/kirby-wrappers.git site/plugins/kirby-wrappers

```

Example
-------

[](#example)

Let's create a `columns` wrapper.

**config.php**

```
return [
  'jg.wrappers' => ['columns']
];
```

**kirbytext**

```
(columns)
  - One
  - Two
  - Three
(/columns)
```

**output**

```

    One
    Two
    Three

```

Configuration
-------------

[](#configuration)

You can specify wrapper tags as `Strings` or `Arrays` with `wrapper`, `class`, `tag`, and `attributes` keys. Arrays are useful when you want the tag and the associated classname to be different, or you want to use a tag other than `div`.

**config.php**

```
return [
  'jg.wrappers' => [
    'center', // ← simplest
    [
      'wrapper' => 'gallery',
      'class' => 'image-gallery',
    ],
    [
      'wrapper' => 'card',
      'tag' => 'article',
    ],
    [
      'wrapper' => 'toggle',
      'attributes' => [
        'data-component' => 'toggle'
      ]
    ],
    [
      'wrapper' => 'modal',
      'class' => false // ← pass false to disable class
      'attributes' => [
        'data-component' => 'modal'
      ]
    ]
  ]
];
```

**kirbytext**

```
(center)(/center)
(gallery)(/gallery)
(card)(/card)
(toggle)(/toggle)
(modal)(/modal)
```

**output**

```

```

Passing Data
------------

[](#passing-data)

You can optionally pass additional data into data-attributes:

**kirbytext**

```
(gallery size: large)(/gallery)
```

**output**

```

```

Nesting
-------

[](#nesting)

Does nesting work? Yep.

**kirbytext**

```
(outer)(inner)(/inner)(/outer)
```

**output**

```

```

Why?
----

[](#why)

This is handy if you need to wrap content in Kirby to do fancy stuff with js and css.

Notes
-----

[](#notes)

- Kirby 2 version found under the `k2` branch

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

2

Last Release

2141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70fedd96f45b5458c2d1f10e0271e511ba29dd56b4e94784bd2196b6695e0594?d=identicon)[jg](/maintainers/jg)

---

Top Contributors

[![jongacnik](https://avatars.githubusercontent.com/u/974474?v=4)](https://github.com/jongacnik "jongacnik (17 commits)")[![gdenisov](https://avatars.githubusercontent.com/u/627695?v=4)](https://github.com/gdenisov "gdenisov (1 commits)")

---

Tags

kirbykirby-pluginkirby3-plugin

### Embed Badge

![Health badge](/badges/jg-kirby-wrappers/health.svg)

```
[![Health](https://phpackages.com/badges/jg-kirby-wrappers/health.svg)](https://phpackages.com/packages/jg-kirby-wrappers)
```

###  Alternatives

[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14689.4k1](/packages/distantnative-retour-for-kirby)[mzur/kirby-uniform

A versatile Kirby plugin to handle web form actions.

26068.3k13](/packages/mzur-kirby-uniform)[arnoson/kirby-vite

Vite helper for Kirby CMS

9759.2k3](/packages/arnoson-kirby-vite)[thathoff/kirby-git-content

Plugin to track changes to content in a git repository.

15343.7k](/packages/thathoff-kirby-git-content)[sylvainjule/locator

A map &amp; geolocation field, built on top of open-source services / Mapbox

11237.3k1](/packages/sylvainjule-locator)[tobimori/kirby-seo

The default choice for SEO on Kirby: Implement technical SEO &amp; Meta best practices with ease and provide an easy-to-use editor experience

10039.7k1](/packages/tobimori-kirby-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
