liugj / double-array-trie
Installs: 162
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/liugj/double-array-trie
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: 2025-10-07 22:02:03 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 ];