deoomen / please-dont-swear
A simple package that allows you to easily censor text
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/deoomen/please-dont-swear
Requires
- php: ^7.4.0
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-10-14 07:00:23 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