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

This package is auto-updated.

Last update: 2024-11-07 20:10:49 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
];