https://github.com/webnuvola/antispambot
Stand-alone antispambot function from WordPress
https://github.com/webnuvola/antispambot
antispam antispambot email obfuscation php spam wordpress
Last synced: about 2 months ago
JSON representation
Stand-alone antispambot function from WordPress
- Host: GitHub
- URL: https://github.com/webnuvola/antispambot
- Owner: Webnuvola
- License: other
- Created: 2019-08-06T14:21:15.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T16:48:34.000Z (over 2 years ago)
- Last Synced: 2025-02-25T13:08:47.690Z (over 1 year ago)
- Topics: antispam, antispambot, email, obfuscation, php, spam, wordpress
- Language: PHP
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Antispambot
[](https://packagist.org/packages/webnuvola/antispambot)
[](https://github.com/Webnuvola/antispambot/actions?query=branch%3Amain)
[](https://packagist.org/packages/webnuvola/antispambot)
This package allows you to use the `antispambot` function outside of WordPress.
## Installation
You can install the package via composer:
```bash
composer require webnuvola/antispambot
```
## Usage
```php
echo antispambot('demo@example.com');
// Example output: demo@example.com
// Example output decoded: demo@example.com
echo antispambot('demo@example.com', 'Contact us');
// Example output: Contact us
echo antispambot('demo@example.com', 'Contact us', ['class' => 'text-white', 'target' => '_blank']);
// Example output: Contact us
echo \Webnuvola\Antispambot\Antispambot::antispambot('demo@example.com');
// Example output: demo@example.com
```
Use `antispambot_html` function to return an instance of `Illuminate\Support\HtmlString` to use with Laravel framework.
## Documentation
`antispambot` on [WordPress Developer Resources](https://developer.wordpress.org/reference/functions/antispambot/).
## Testing
```bash
composer test
```
## Credits
- [WordPress](https://wordpress.org/)
- [Fabio Cagliero](https://github.com/fab120)
## License
This software is release under GPL v2. Please see [LICENSE](LICENSE) file for more information.