deoomen/please-dont-swear

A simple package that allows you to easily censor text

v1.1.2 2020-07-13 18:17 UTC

This package is auto-updated.

Last update: 2024-09-14 04:11:22 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

License

MIT License