PHP code example of pavelpage / censorship
1. Go to this page and download the library: Download pavelpage/censorship library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pavelpage / censorship example snippets
$censor = new Censor();
$text = "some text";
$censor->clean($text);// will replace obscene words in your text
$censor = new Censor();
$text = "some text";
$censor->hasObsceneWords($text);
$censor = new Censor(['param_name' => []);// just send your custom configuration parameters to __construct method of controller