Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steadfast-collective/md5twigfilter
A simple plugin to add an MD5 filter to twig
https://github.com/steadfast-collective/md5twigfilter
craft filter md5 plugin twig
Last synced: 2 months ago
JSON representation
A simple plugin to add an MD5 filter to twig
- Host: GitHub
- URL: https://github.com/steadfast-collective/md5twigfilter
- Owner: steadfast-collective
- License: mit
- Created: 2018-06-05T08:42:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T09:01:49.000Z (over 6 years ago)
- Last Synced: 2024-11-01T19:33:06.782Z (3 months ago)
- Topics: craft, filter, md5, plugin, twig
- Language: PHP
- Homepage: https://steadfastcollective.com
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MD5 Twig Filter plugin for Craft CMS 3.x
A simple filter for twig to hash a string with MD5.
IMPORTANT! Do not use md5 to hash passwords or other sensitive data, MD5 is considered crytographically broken.
## Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
## Installation
To install the plugin, follow these instructions.
1. Open your terminal and go to your Craft project:
cd /path/to/project
2. Then tell Composer to load the plugin:
composer require steadfastcollective/md5-twig-filter
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for MD5 Twig Filter.
## Using MD5 Twig Filter
{{ md5("some string" }}
{{ "some string" | md5 }}Brought to you by [Steadfast Collective](https://steadfastcollective.com/)