PHPackages                             s1syphos/kirby3-gesetze - 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. [API Development](/categories/api)
4. /
5. s1syphos/kirby3-gesetze

ActiveKirby-plugin[API Development](/categories/api)

s1syphos/kirby3-gesetze
=======================

Linking german legal norms for Kirby v3, dependency-free &amp; GDPR-friendly

1.0.0(4y ago)018MITPHP

Since Dec 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/S1SYPHOS/kirby3-gesetze)[ Packagist](https://packagist.org/packages/s1syphos/kirby3-gesetze)[ RSS](/packages/s1syphos-kirby3-gesetze/feed)WikiDiscussions main Synced 3d ago

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

Kirby3 Gesetze
==============

[](#kirby3-gesetze)

This plugin automatically links german legal norms - dependency-free &amp; GDPR-friendly, powered by [`php-gesetze`](https://codeberg.org/S1SYPHOS/php-gesetze).

Getting started
---------------

[](#getting-started)

Use one of the following methods to install &amp; use `kirby3-gesetze`:

### Git submodule

[](#git-submodule)

If you know your way around Git, you can download this plugin as a [submodule](https://github.com/blog/2104-working-with-submodules):

```
git submodule add https://codeberg.org/S1SYPHOS/kirby3-gesetze.git site/plugins/kirby3-gesetze

```

### Composer

[](#composer)

```
composer require s1syphos/kirby3-gesetze

```

### Clone or download

[](#clone-or-download)

1. [Clone](https://codeberg.org/S1SYPHOS/kirby3-gesetze.git) or [download](https://codeberg.org/S1SYPHOS/kirby3-gesetze/archive/main.zip) this repository.
2. Unzip / Move the folder to `site/plugins`.

Usage
-----

[](#usage)

Quick demonstration:

This markdown `text` content ..

```
This is a **simple** HTML text. It contains legal norms, like Art. 12 I GG and § 433 II BGB!
```

.. easily ..

```
# .. via `kirbytext()` ..
echo $page->text()->kt()

# .. or page method ..
echo $page->gesetzify($text);

# .. or field method ..
echo $page->text()->gesetzify();
```

.. becomes:

```

  This is a simple HTML text. It contains legal norms, like Art. 12 I GG or § 433 II BGB!

```

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

[](#configuration)

You may change certain options from your `config.php` globally (`'kirby3-gesetze.optionName'`):

OptionTypeDefaultDescription`'enabled'`bool`false`Enables `kirbytext:after` hook`'allowList'`array`[]`Allowed template names`'blockList'`array`[]`Blocked template names`'attributes'`array`[]`Controls HTML attributes`'validate'`bool`true`Enable/disable validation`'title'`string`'full'`Controls `title` attribute. Possible values: `false`, `'light'`, `'normal'`, `'full'`'`drivers.preferred`'string`'gesetze'`Preferred driver. Possible values: `'gesetze'`, `'dejure'`, `'buzer'`, `'lexparency'`'`drivers.blockList`'array`[]`Unallowed driver(s). Possible values: see `drivers.preferred`When enabling the plugin via `kirby3-gesetze.enabled`, auto-linking is applied to all `kirbytext()` / `kt()` calls, with two exceptions:

1. If a page's `intendedTemplate()` name is allow(list)ed, this overrides `kirby3-gesetze.enabled` being `false`
2. If a page's `intendedTemplate()` name is block(list)ed, this overrides `kirby3-gesetze.enabled` being `true`

Besides that, there are additional methods you can use:

Methods
-------

[](#methods)

There are several ways to do this, you can either use a standalone function, a page method or a field method:

### Method: `gesetzify(string $text): string`

[](#method-gesetzifystring-text-string)

Processes (valid) legal norms throughout given text

### Page method: `$page->gesetzify(string $text)`

[](#page-method-page-gesetzifystring-text)

Same as `gesetzify`

### Field method: `$field->gesetzify(string $text, bool $inline = false)`

[](#field-method-field-gesetzifystring-text-bool-inline--false)

Same as `gesetzify`, but supports applying `kt()` / `kti()` via `$inline` option.

Roadmap
-------

[](#roadmap)

- Add tests

Credits / License
-----------------

[](#credits--license)

`kirby3-gesetze` is based on [`php-gesetze`](https://codeberg.org/S1SYPHOS/php-gesetze) library. It is licensed under the [MIT License](LICENSE), but **using Kirby in production** requires you to [buy a license](https://getkirby.com/buy).

Special Thanks
--------------

[](#special-thanks)

I'd like to thank everybody that's making great software - you people are awesome. Also I'm always thankful for feedback and bug reports :)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1608d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5933072731cd628e1ef2bdc59bc81da16dac859145a3be2dc5c83aab9095179b?d=identicon)[S1SYPHOS](/maintainers/S1SYPHOS)

---

Top Contributors

[![S1SYPHOS](https://avatars.githubusercontent.com/u/12161504?v=4)](https://github.com/S1SYPHOS "S1SYPHOS (3 commits)")

---

Tags

apikirbykirby-pluginlawlegalkirby3getkirbydejuredejure.orglawslegal techgesetzegesetze-im-internet.debuzerbuzer.delexparency

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/s1syphos-kirby3-gesetze/health.svg)

```
[![Health](https://phpackages.com/badges/s1syphos-kirby3-gesetze/health.svg)](https://phpackages.com/packages/s1syphos-kirby3-gesetze)
```

###  Alternatives

[getkirby/kql

Kirby Query Language

15124.3k](/packages/getkirby-kql)[beebmx/kirby-env

Enable env variables to Kirby

2037.9k2](/packages/beebmx-kirby-env)[beebmx/kirby-courier

Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.

403.0k2](/packages/beebmx-kirby-courier)[johannschopplich/kirby-headless

API-first toolkit for Kirby CMS

4414.1k](/packages/johannschopplich-kirby-headless)[beebmx/kirby-db

Enable database support for Illuminate\\Database in Kirby

192.6k](/packages/beebmx-kirby-db)[tobimori/kirby-tailwind-merge

Tailwind Merge for Kirby CMS

276.3k](/packages/tobimori-kirby-tailwind-merge)

PHPackages © 2026

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