cavellblood / craft-string-base64
Twig filters to base64 encode/decode a string.
Installs: 13 676
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.1.0
This package is auto-updated.
Last update: 2025-04-29 01:00:52 UTC
README
Twig filters to base64 encode/decode a string.
Requirements
This plugin requires Craft CMS 3.1.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require cavellblood/string-base64
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for String Base64.
Using String Base64
Encoding
Input:
{{ "some string" | base64enc }}
Output:
c29tZSBzdHJpbmc=
Decoding
Input:
{{ "c29tZSBzdHJpbmc=" | base64dec }}
Output:
some string
Brought to you by Cavell L. Blood