Skip to content

zaengle/craft-toolbelt

Repository files navigation

Template utility tools for CraftCMS projects

Latest Stable Version Buy us a tree License

Because logic belongs in PHP, not Twig.

What

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

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

See the docs for detailed usage information.

What you get...

  1. Utility functions
  2. String helpers
  3. SVG helpers
  4. Query/Collection helpers
  5. Eager loading helpers
  6. Debugging helpers
  7. Operators
  8. Media helpers
  9. The Stash
  10. The ability to define custom/one-off helpers

Installation

Via composer:

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

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 for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

License: MIT Please see License File for more information.

About

Utility belt functions for authoring clean CraftCMS templates

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •