wulijun / php-ext-trie-filter

php extension for spam word filter based on Double-Array Trie tree, it can detect if a spam word exists in a text message. 关键词过滤扩展,用于检查一段文本中是否出现敏感词,基于Double-Array Trie 树实现。
514 stars 169 forks source link

Support Php7 & add New funcs #11

Closed zzjin closed 5 years ago

zzjin commented 7 years ago
  1. 支持php7,自动判断php5和php7
  2. 新增三个函数,直接string操作字典