deoomen / please-dont-swear
A simple package that allows you to easily censor text
v1.1.2
2020-07-13 18:17 UTC
Requires
- php: ^7.4.0
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-04-14 05:35:15 UTC
README
A simple package that allows you to easily censor text.
For now, it only supports Polish "bad words" and allows basic censorship of the text, but in the future I plan to add support for other languages, as well as more methods to work with censored text.
Installation
Use composer to install PleaseDontSwear into your project:
composer require deoomen/please-dont-swear
How to use
<?php use PleaseDontSwear\PleaseDontSwear; // ... $PDS = new PleaseDontSwear(); $myCensoredText = $PDS->censor($myBadText);
More examples of using methods can be found in the examples folder.
Tests
TODO