PHPackages                             oofbar/craft-twig-toolbox - 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. oofbar/craft-twig-toolbox

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

oofbar/craft-twig-toolbox
=========================

Create your own Twig helpers.

1.1.0(2y ago)161.8k↓64.3%MITPHP

Since Sep 19Pushed 2y ago2 watchersCompare

[ Source](https://github.com/oof-bar/craft-twig-toolbox)[ Packagist](https://packagist.org/packages/oofbar/craft-twig-toolbox)[ RSS](/packages/oofbar-craft-twig-toolbox/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Twig Toolbox for Craft CMS
==========================

[](#twig-toolbox-for-craft-cms)

*The simplest way to keep business logic out of your Twig templates.*

All this plugin does is registers a Twig extension—everything else is up to you! With Twig Toolbox, you can finally start to clean up the mess that accumulates at the top of every template…

Usage
-----

[](#usage)

Twig Toolbox lets you inject custom filters, functions, globals, and tests into Craft’s template engine.

To get started, install the plugin from the Craft Plugin Store, or use Composer:

```
composer require oofbar/craft-twig-toolbox
php craft plugins/install twig-toolbox
```

Then, copy this into `config/twig-toolbox.php`:

```
