Clone this repo:

Branches

  1. 16ecb2c build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 by libraryupgrader · 5 months ago master
  2. e39da0c build: Pin PHPUnit to 9.5.28 by James D. Forrester · 6 months ago
  3. 64bde3c build: Upgrade PHPUnit from ^8.5 to ^9.5 by James D. Forrester · 10 months ago
  4. fbcd7be build: Updating composer dependencies by libraryupgrader · 9 months ago
  5. 1aa3669 [BREAKING CHANGE] Raise claimed PHP need from 7.2+ to 7.4+ by James D. Forrester · 10 months ago

Packagist.org

AhoCorasick

AhoCorasick is a PHP implementation of the Aho-Corasick string search algorithm, which is an efficient way of searching a body of text for multiple search keywords.

Here is how you use it:

Features

The algorithm works by constructing a finite-state machine out of the set of search keywords. The time it takes to construct the finite state machine is proportional to the sum of the lengths of the search keywords. Once constructed, the machine can locate all occurences of all search keywords in any body of text in a single pass, making exactly one state transition per input character.

Contribute

Support

If you are having issues, please let us know.

License

The project is licensed under the Apache license.