Download the PHP package mokhosh/muddle without Composer
On this page you can find all versions of the php package mokhosh/muddle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mokhosh/muddle
More information about mokhosh/muddle
Files in mokhosh/muddle
Package muddle
Short Description Obfuscate emails and strings in PHP and Laravel
License MIT
Homepage https://github.com/mokhosh/muddle
Informations about the package muddle
Muddle: Obfuscate, Obscure, Confuse, Jumble, Complicate, Perplex
Please, don't just put plain raw emails on your web pages. Bots are going to scrape your pages and fill all of our inboxes with spam emails.
Obfuscate emails and strings in PHP and Laravel to keep those nasty bots away from finding your email or worse, your users' emails.
This package uses different strategies to obfuscate clickable and non-clickable emails, so you can choose what suits your needs best.
Installation
You can install the package via composer:
Usage
In Laravel Projects:
In plain PHP Projects:
Automatic Title Obfuscation
When using the link method or component, if the email and title attributes are identical (for example, <x-muddle-link email="[email protected]" title="[email protected]" />), the title will be automatically obfuscated using the text strategy. This prevents the email from being exposed in plain text.
Please note that this automatic behavior only applies for the default strategy. If you are using a specific strategy you will need to handle this scenario manually.
Configuration
You can publish the config file with:
This is the contents of the published config file:
Testing
Todo
- [ ] Add Dusk tests
- [ ] Make loading components dynamic
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Mo Khosh
- Joe Tannenbaum for the inspiration.
- Spencer Mortensen for the information.
License
The MIT License (MIT). Please see License File for more information.
All versions of muddle with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0