liugj / double-array-trie
There is no license information available for the latest version (v1.0.2) of this package.
v1.0.2
2017-07-17 02:15 UTC
Requires
- php: >=7.0
- ext-trie_filter: ~0.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.3
- phpunit/phpunit: ~5
- sllh/php-cs-fixer-styleci-bridge: dev-master
This package is auto-updated.
Last update: 2024-12-07 20:17:38 UTC
README
Add Double Array Trie
in Lumen
to filter sensitive words
Installation
You can install the package via composer:
composer require liugj/double-array-trie
You must add the Trie service provider and the package service provider in your bootstrap/app.php
line 80 config:
$app->register(Liugj\DoubleArray\TrieServiceProvider::class);
You must add double-array-trie.php in your config
directory
return [ 'dest' => resoure_path(). '/pingbi.dat', //Double Array path 'src' => resoure_path(). '/pingbi.txt' //Sensitive words one word per line ];