PHP Classes

PHP Fast Pattern Matching: Match text patterns using ternary tries

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 470 All time: 5,972 This week: 283Up
Version License PHP version Categories
fastpm 0.1Free for non-comm...5.0Algorithms, PHP 5, Searching, Text pr...
Description Author

This package can match text patterns using ternary tries.

The main class can add text strings as symbol keys and it builds a ternary trie.

The class can also take a key string to match by searching the ternary trie. It returns an array with all the matches.

Innovation Award
PHP Programming Innovation award nominee
February 2015
Number 4

Prize: One year server license IP to country, region, city, latitude, longitude, ZIP code, time zone, area code database
Text pattern matching is a process of determining if a given text string contains sequences of characters that match a given pattern.

In PHP text pattern matching can be done using regular expressions and the preg extension.

This class provides a pure PHP approach for implementing text pattern matching by the use ternary tries.

Manuel Lemos
Picture of Chi Hoang
  Performance   Level  
Name: Chi Hoang <contact>
Classes: 28 packages by
Country: Viet Nam Viet Nam
Age: 37
All time rank: 3572 in Viet Nam Viet Nam
Week rank: 39 Up1 in Viet Nam Viet Nam Up
Innovation award
Innovation award
Nominee: 22x

Winner: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example script
Plain text file fastpm.php Class Main class
Accessible without login Plain text file unittest.php Test Unit Test

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,972
This week:283Up
 User Ratings  
 All time
For more information send a message to info at phpclasses dot org.