Download the PHP package expalmer/php-bad-words without Composer
On this page you can find all versions of the php package expalmer/php-bad-words. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-bad-words
PHP Bad Words
PHP BAD WORDS is a PHP Package that return TRUE or FALSE when it finds a bad word in a text.
The cool thing is that you can put rules in each word of the dictionary.
Explanation
- Alone: If the text is
You are a Asshole, and the dictionary has the bad wordsarray( 'ass' );it doesn't match, because the wordassmust be appears alone. - Among: The same text
You are a Assholeand the same word, but now as an array with a rulearray( array('ass','among') );, now it matches because the ruleamong. It will find among each word of the text by the wordass, and the wordassholehas the wordass, got it ;).
Installing
To install include it in your projects's composer.json.
There are no additional dependencies required for this package to work.
Usage
Setting the Dictionary
How the dictionary looks like.
By an Array
By a File
Tests
To run the unit tests on this package, simply run vendor/bin/phpunit from the package directory.
All versions of php-bad-words with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package expalmer/php-bad-words contains the following files
Loading the files please wait ...