cavellblood/craft-string-base64

Twig filters to base64 encode/decode a string.

Installs: 13 792

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:craft-plugin

pkg:composer/cavellblood/craft-string-base64

1.0.1 2019-04-08 19:21 UTC

This package is auto-updated.

Last update: 2025-09-29 02:28:16 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.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require cavellblood/string-base64
    
  3. 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