PHPackages                             zaengle/craft-toolbelt - 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. zaengle/craft-toolbelt

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

zaengle/craft-toolbelt
======================

Utility tools for CraftCMS projects

5.0.9(9mo ago)111.6k↑100%[3 PRs](https://github.com/zaengle/craft-toolbelt/pulls)MITPHPPHP ^8.2 | ^8.3CI passing

Since Sep 7Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/zaengle/craft-toolbelt)[ Packagist](https://packagist.org/packages/zaengle/craft-toolbelt)[ Docs](https://craft-toolbelt.zaengle.com)[ RSS](/packages/zaengle-craft-toolbelt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (39)Used By (0)

Template utility tools for CraftCMS projects
============================================

[](#template-utility-tools-for-craftcms-projects)

[![Latest Stable Version](https://camo.githubusercontent.com/ed301628ccae048a9818b881ad535954cfe4a1a49060295a883f09a687f60b99/687474703a2f2f706f7365722e707567782e6f72672f7a61656e676c652f63726166742d636f6e76656e74696f6e732f76)](https://packagist.org/packages/zaengle/craft-conventions) [![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/zaengle/craft-toolbelt) [![License](https://camo.githubusercontent.com/99d65b24b99e0625c0042bd9a6bfe48ff5bd9bcdc3af5d6a625f2221207804e4/687474703a2f2f706f7365722e707567782e6f72672f7a61656e676c652f63726166742d636f6e76656e74696f6e732f6c6963656e7365)](https://packagist.org/packages/zaengle/craft-conventions)

> Because logic belongs in PHP, not Twig.

What
----

[](#what)

A collection of Twig enhancements to help you develop better, cleaner Craft CMS templates more quickly.

Why?
----

[](#why)

Because simple templates are easier to understand, and code that is easier to understand is easier to maintain.

Craft CMS is a great tool for building websites, but it's not perfect. One of the biggest issues is that its very power and flexibility means it's very easy to end up with a lot of logic in your templates.

Usage
-----

[](#usage)

See the [docs](https://craft-toolbelt.zaengle.com/) for detailed usage information.

What you get...
---------------

[](#what-you-get)

1. [Utility functions](./docs/01-utility-fns.md)
2. [String helpers](./docs/01.5-string-helpers.md)
3. [SVG helpers](./docs/02-svg-helpers.md)
4. [Query/Collection helpers](./docs/03-query-helpers.md)
5. [Eager loading helpers](./docs/04-eager-loading-helpers.md)
6. [Debugging helpers](./docs/05-debugging-helpers.md)
7. [Operators](./docs/06-operators.md)
8. [Media helpers](./docs/08-media-helpers.md)
9. [The Stash](./docs/09-stash.md)
10. [The ability to define custom/one-off helpers](./docs/07-custom.md)

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

[](#installation)

Via composer:

```
composer require zaengle/craft-toolbelt
php craft plugin/install toolbelt
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please note: This is primarily an internal tool, so while PRs that add features will be considered, contributions will be evaluated based on their fit with Zaengle's approach and priorities rather than other consumers. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](./.github/SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Zaengle Corp](https://github.com/zaengle)
- [Empty Coalesce / `???` lifted from the plugin of the same name by nystudio107](https://github.com/nystudio107/craft-emptycoalesce)
- [Classnames functionality based on the plugin of the same name by Viget](https://github.com/vigetlabs/craft-classnames)
- [Idea for custom helper from Twig Toolbox, but re-implemented here](https://github.com/oof-bar/craft-twig-toolbox)

License
-------

[](#license)

License: MIT Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance70

Regular maintenance activity

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 81.6% 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 ~36 days

Recently: every ~102 days

Total

30

Last Release

283d ago

Major Versions

1.5.0 → 5.0.0-beta.12024-03-06

1.6.0 → 5.0.0-beta.42024-04-30

PHP version history (5 changes)1.0.0PHP ^8.0 | ^8.1

1.3.0PHP ^8.0 | ^8.1 | ^8.2

5.0.0-beta.1PHP ^8.2

5.0.0PHP ^8.0 | ^8.1 | ^8.2 | ^8.3

5.0.3PHP ^8.2 | ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/469bfbd3e1b1b6b42d65bf3fba4e6c7a0c0113188d7efc17411800d5686f5655?d=identicon)[tomdavies](/maintainers/tomdavies)

![](https://www.gravatar.com/avatar/d5562b4d7d0b994350c229be13a5a1e1f45e593abe55da7475cae551f2a9244e?d=identicon)[zaengle](/maintainers/zaengle)

---

Top Contributors

[![tomdavies](https://avatars.githubusercontent.com/u/136308?v=4)](https://github.com/tomdavies "tomdavies (93 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![austriker27](https://avatars.githubusercontent.com/u/14855925?v=4)](https://github.com/austriker27 "austriker27 (1 commits)")

---

Tags

craftcmscraft-plugincraft-toolbelt

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zaengle-craft-toolbelt/health.svg)

```
[![Health](https://phpackages.com/badges/zaengle-craft-toolbelt/health.svg)](https://phpackages.com/packages/zaengle-craft-toolbelt)
```

###  Alternatives

[verbb/super-table

Super-charge your content builders and create nested Matrix fields.

3141.6M22](/packages/verbb-super-table)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/field-manager

Manage your fields and field groups with ease.

197607.5k10](/packages/verbb-field-manager)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[doublesecretagency/craft-cpcss

Add custom CSS to your Control Panel.

117454.0k9](/packages/doublesecretagency-craft-cpcss)

PHPackages © 2026

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