Looking to hire Laravel developers? Try LaraJobs

laravel-word-censor maintained by almazary

Description
dirty word censor
Author
Last update
2022/05/27 14:23 (dev-main)
License
Downloads
179

Comments
comments powered by Disqus

Laravel Word Censor

Latest Version on Packagist Total Downloads

This package will make it easier when you want to replace certain words with a *** sign

Installation

You can install the package via composer:

composer require almazary/laravel-word-censor

publish the config file with:

php artisan vendor:publish --tag="laravel-word-censor-config"

Usage

Via facade:

use Almazary\LaravelWordCensor\LaravelWordCensorFacade;

$a = LaravelWordCensorFacade::replace('bigger boob');
// result: bigger ***

Via middleware:

protected $middleware = [
    ...,
    ...,
    \Almazary\LaravelWordCensor\Middleware\Replace::class,
];

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email almazary@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.