Hide and safeguard emails from bots with the Muddle Laravel package

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="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-append email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-concatenation email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-encrypt email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-entities email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-hex email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />
<x-muddle-rotate email="This email address is being protected from spambots. You need JavaScript enabled to view it." title="email" />

{{-- specific text strategy components --}}
<x-muddle-text-random email="This email address is being protected from spambots. You need JavaScript enabled to view it." />
<x-muddle-text-append email="This email address is being protected from spambots. You need JavaScript enabled to view it." />
<x-muddle-text-concatenation email="This email address is being protected from spambots. You need JavaScript enabled to view it." />
{{-- ... --}}

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

The post Hide and safeguard emails from bots with the Muddle Laravel package appeared first on Laravel News.

Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

Read more

© 2024 Extly, CB - All rights reserved.