PHPackages                             ikkez/f3-template-directives - 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. ikkez/f3-template-directives

ActiveLibrary[Templating &amp; Views](/categories/templating)

ikkez/f3-template-directives
============================

Collection of template directives for PHP Fat-Free Framework

v1.2.2(4y ago)116934[1 issues](https://github.com/ikkez/f3-template-directives/issues)2GPL-3.0PHP

Since May 13Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ikkez/f3-template-directives)[ Packagist](https://packagist.org/packages/ikkez/f3-template-directives)[ Docs](https://github.com/ikkez/f3-template-directives)[ RSS](/packages/ikkez-f3-template-directives/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)DependenciesVersions (10)Used By (2)

Template directives
===================

[](#template-directives)

Collection of different template directives for the [PHP Fat-Free Framework](https://github.com/bcosca/fatfree).

This package gives you a base to write your own template tag handler (directive) easily. Therefore extend the `\Template\TagHandler` class and implement its `build` method. You can also have a look at the included, ready-to-use directives:

### form

[](#form)

A collection of additional form-related HTML tag handlers for server side data handling to **form / input / select / textarea** elements.

Init:

```
\Template\Tags\Form::initAll();
```

This automatically registers the following directives: `input`, `select`, `option`, `textarea`, `form`.

Any data you set to the global `POST` variable is filled into the registered form elements accordingly. If you want to use a different hive key, you can do it like this:

```
// change source key
$f3->copy('POST','form1');
\Template\Tags\Form::instance()->setSrcKey('form1');
```

You can also fill the form fields dynamically based on the form name attribute:

```

```

The field target is then set to `FORM.contact`:

```
$f3->copy('POST','FORM.contact');
\Template\Tags\Form::instance()->setDynamicSrcKey(true);
```

For more tests, see:

### markdown

[](#markdown)

Convert inline markdown text or render a file.

```

# Headline

You can write **markdown** here

```

or

```

```

Init:

```
\Template\Tags\Markdown::init('markdown');
```

### image

[](#image)

Render image thumbnails automatically.

Init:

```
\Template\Tags\Image::init('image' [, $tmpl [, $options ] ] );
```

Options:

- `temp_dir`, public accessable path for generated, temporary thumbnail images
- `file_type`, default file type for dumped images, `png`, `jpeg`, `gif` or `wbmp`
- `default_quality`, image quality, 0-100
- `not_found_fallback`, fallback path for missing images
- `not_found_callback`, define a callable function here that is executed when the image path was not found. The function receives the `$filePath` as first parameter.

Usage:

```

```

Additional attributes:

- `width`, target image width
- `height`, maximum image height
- `crop`, allow image to be cropped into width/height ratio
- `enlarge`, size up image when source image is smaller than target size
- `quality`, overwrite default quality

Licence
-------

[](#licence)

GPLv3

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

Every ~171 days

Recently: every ~164 days

Total

9

Last Release

1547d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84cac52f5889d2bf6e710f2139dfc884824b2d7ce9c48a3bfe90704a94c85722?d=identicon)[ikkez](/maintainers/ikkez)

---

Top Contributors

[![ikkez](https://avatars.githubusercontent.com/u/1177647?v=4)](https://github.com/ikkez "ikkez (15 commits)")

---

Tags

fat-free-frameworkformstemplateutilityviewhelpersimagetemplateformF3fatfree

### Embed Badge

![Health badge](/badges/ikkez-f3-template-directives/health.svg)

```
[![Health](https://phpackages.com/badges/ikkez-f3-template-directives/health.svg)](https://phpackages.com/packages/ikkez-f3-template-directives)
```

###  Alternatives

[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[pug-php/pug

HAML-like template engine for PHP

393383.2k54](/packages/pug-php-pug)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)

PHPackages © 2026

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