Skip to content

A simple package that allows you to easily censor text.

License

Notifications You must be signed in to change notification settings

deoomen/please-dont-swear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please don't swear

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

About

A simple package that allows you to easily censor text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages