PHPackages                             hashandsalt/kirby-carver - 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. [Templating &amp; Views](/categories/templating)
4. /
5. hashandsalt/kirby-carver

ActiveKirby-plugin[Templating &amp; Views](/categories/templating)

hashandsalt/kirby-carver
========================

Kirby 3 Carver plugin for using PHP and the power of Kirby to create custom html tags.

1.0.1(7y ago)312[1 issues](https://github.com/HashandSalt/carver/issues)MITPHP

Since Mar 24Pushed 7y agoCompare

[ Source](https://github.com/HashandSalt/carver)[ Packagist](https://packagist.org/packages/hashandsalt/kirby-carver)[ RSS](/packages/hashandsalt-kirby-carver/feed)WikiDiscussions master Synced today

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

Kirby Carver
============

[](#kirby-carver)

What it does
------------

[](#what-it-does)

This plugin allows you to write custom HTML tags, powered by PHP.

Why?
----

[](#why)

Kirby is most awesome, but I do miss the simplicity of Textpattern's templating language, which looks like HTML. Having gone through available alternative templating engines like Twig and Blade, without much love, I decided to put this together.

For example, to get the a formatted date from a field, normally you would do something like this:

```

```

What if you could do this instead?

```

```

You can find some example tags in `site/plugins/carver/library`

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

[](#installation)

- Download the files and place in `plugins/carver`
- Create a folder called `carver` under the `site` folder. This is where you tags will be stored.

Usage
-----

[](#usage)

Let's create a simple tag as an example to show what this can do, based on the date tag mentioned above.

Start by creating the following file: 'site/carver/date/tag.php'.

Add this code to the file:

```
