Hide and safeguard emails from bots with the Muddle Laravel package
Published on by Paul Redmond
Muddle is a PHP package to hide and safeguard emails from bots, allowing you to obfuscate emails in PHP and Laravel. This package can be used in any PHP project and also includes convenient components for Laravel:
<x-muddle-link :email="$user->email" :title="$user->name" /> {{-- specific link strategy components --}}<x-muddle-random email="test@example.com" title="email" /><x-muddle-append email="test@example.com" title="email" /><x-muddle-concatenation email="test@example.com" title="email" /><x-muddle-encrypt email="test@example.com" title="email" /><x-muddle-entities email="test@example.com" title="email" /><x-muddle-hex email="test@example.com" title="email" /><x-muddle-rotate email="test@example.com" title="email" /> {{-- specific text strategy components --}}<x-muddle-text-random email="test@example.com" /><x-muddle-text-append email="test@example.com" /><x-muddle-text-concatenation email="test@example.com" />{{-- ... --}}
You can also obfuscate emails using the provided Facade or use the Muddle
class in a PHP project.
You can learn more about this package, get full installation instructions, and view the source code on GitHub. The readme has plenty of examples depending on your project needs. You can also install this package via composer with the following:
composer require mokhosh/muddle