I would like to add AhoCorasick extension to the PECL. It is an efficient multiple-pattern string matching algorithm based on building a deterministic finite automata. The whole algorithm is performed in the extension, benefiting from speed improvements compared to pure-PHP approach when implementing AhoCorasick.
I am using this extension on my personal projects to match haystack against a large dictionary of keywords. Extension works well, it is pretty fast. Build runs on Travis CI. Source code was tested with static code analysis tool. Here are the sources of the extension: https://github.com/ph4r05/php_aho_corasick Sponsor: [email protected] Sponsor: [email protected] -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
