Download the PHP package jojoee/leo-profanity without Composer
On this page you can find all versions of the php package jojoee/leo-profanity. 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 leo-profanity
leo-profanity-php
Profanity filter, based on Shutterstock dictionary
Install
Via Composer
Usage
$filter->getList()
$filter->check(string)
Check out mor example on clean
method
$filter->clean(string, [replaceKey=*])
$filter->add(string|string[])
$filter->remove(string|string[])
$filter->reset()
Reset word list by using default dictionary (also remove word that manually add)
$filter->clearList()
Clear all profanity words
Note
- Filter algorithm from
jojoee/leo-profanity
- Testing (using
composer test
) - PSR-2 Coding Standard (tested by
composer check-style
and fix it withcomposer fix-style
.) - Security, if you discover any security related issues, please email [email protected] instead of using the issue tracker.
- Follow SemVer v2.0.0
- Coherent history (each individual commit is meaningful), if not please squash them.
TODO
- [x] Unit test
- [x] Test coverage
- [x] PHP CodeSniffer
- [x] Support PHP version 5.6, 7.0, hhvm
Other languages
- [x] Javascript on npmjs.com/package/leo-profanity
- [x] PHP on packagist.org/packages/jojoee/leo-profanity
- [ ] Python on PyPI
- [ ] Java on Maven
- [ ] Wordpress on wordpress.org
Contribute
Please run composer check
and fix before commit
Reference
- Skeleton template: thephpleague/skeleton, koriym/Koriym.PhpSkeleton, petk/php-skeleton
All versions of leo-profanity with dependencies
PHP Build Version
Package Version
Requires
php Version
~5.6|~7.0
The package jojoee/leo-profanity contains the following files
Loading the files please wait ....