zaengle / craft-toolbelt
Utility tools for CraftCMS projects
Installs: 7 397
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- php: ^8.2 | ^8.3
- craftcms/cms: ^4.0.0||^5.0.0
- newridetech/php-classnames: ^1.2
Requires (Dev)
- craftcms/ecs: dev-main
- nunomaduro/collision: ^8.1
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.11
- roave/security-advisories: dev-latest
- symplify/easy-coding-standard: ^10.3
- dev-main
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.0
- 5.0.0-beta.4
- 5.0.0-beta.3
- 5.0.0-beta.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-dependabot/npm_and_yarn/vue-3.5.13
- dev-dependabot/composer/symfony/http-client-6.4.15
- dev-dependabot/composer/craftcms/cms-5.4.8
- dev-dependabot/composer/twig/twig-3.14.2
- dev-dependabot/composer/symfony/process-7.1.7
- dev-dependabot/npm_and_yarn/vitepress-1.5.0
- dev-craft-5
- dev-feature/unit-tests
This package is auto-updated.
Last update: 2024-12-16 12:12:16 UTC
README
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...
- Utility functions
- String helpers
- SVG helpers
- Query/Collection helpers
- Eager loading helpers
- Debugging helpers
- Operators
- Media helpers
- The Stash
- 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
- Zaengle Corp
- Empty Coalesce /
???
lifted from the plugin of the same name by nystudio107 - Classnames functionality based on the plugin of the same name by Viget
- Idea for custom helper from Twig Toolbox, but re-implemented here
License
License: MIT Please see License File for more information.