Skip to content

liugj/double-array-trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double-Array-Trie

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
];

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages