PHP Classes

How to Use a PHP String Search Function That Is More Efficient For Searching Long Strings Using the Class RA Boyer Moore Search: Search on a string using the Boyer-Moore algorithm

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-04-03 (3 months ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
ra-boyermooresearch 1.0GNU General Publi...7Algorithms, Searching, Text processing, P...
Description 

Author

This package can search on a string using the Boyer-Moore algorithm.

It provides a class can take as parameters a string to search and a pattern to find in the string.

The class uses the Boyer-Moore algorithm to find the pattern text in the string and returns the position of the pattern text if it is found in the string.

Innovation Award
PHP Programming Innovation award nominee
April 2025
Number 3
Many PHP applications need to perform searches for specific text patterns within strings.

Usually, PHP developers use the strpos function to search for strings.

This package provides an alternative text string search function that uses the Boyer-Moore algorithm that tends to be more efficient to search for text patterns in long strings.

Manuel Lemos
Picture of Roberto Aleman
  Performance   Level  
Name: Roberto Aleman <contact>
Classes: 29 packages by
Country: Venezuela Venezuela
Innovation award
Innovation award
Nominee: 18x

Winner: 3x

Instructions

  Files folder image Files (5)  
File Role Description
Plain text file BoyerMooreSearch.php Class Class source
Plain text file BoyerMooreSearch_ES.php Class Class source
HTML file Documentation.html Doc. Documentation
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0