EN FR
← Packages

jdz/obfuscator

Server-side email obfuscation paired with the jizy-obfuscator JS client

Overview

Server-side email and HTML obfuscation paired with the jizy-obfuscator JavaScript client. Emits indexed <span id="obfuscated-N"> placeholders and ROT13-encoded payloads; the browser reveals the real markup on page load.

Features

  • Obfuscate emails (obfuscate()) and arbitrary HTML (obfuscateHtml())
  • Placeholder <span> output with sequential ids, ready for JS decoding
  • Twig extension: filter |obfuscate, functions obfuscate_email(), obfuscate_html(), obfuscate_script()
  • Payload order matches what the JS client consumes — no manual pairing needed
  • Pairs with jizy-obfuscator on the client side

Installation

composer require jdz/obfuscator