PHP Text Processing

Log checker can be used to truncate log files that exceed a limit size. This script contains functions required for crawling trought directories and filtering out, files with extensions passed in array as parameter. At first it crawls trought directory passed as parameter. When it finds subdirectory, it will be craweled too though. After matching all files by extension, files ...

PString can manipulate text strings, it can also take a text string value and perform several types of operations like comparing or concatenating it with another string, searching and replacing sub-strings, splitting the string, etc.. This script can be used in text-heavy applications or user input websites, where text must be processed before being used. Requirements:- PHP 5.0 or higher

This PHP script can be used to manipulate dates, HTML and text strings and other utilities. It provides general purpose functions for manipulating dates like formatting dates, calculating the difference of time between two dates, etc.. The script manipulates HTML and text strings, generating JavaScript tags for common purposes, validates common text formats, converts accent letters to HTML entities, remove ...

StringList can be used to manage lists of strings. It can take a list of strings separated by line breaks and extracts key value pairs separated by the = character. StringList will then return the list of strings as an array, add more strings to the list, and save or load the list from an external file. Requirement: PHP 5.0 ...

Regexp store can be used to apply regular expressions from a MySQL database. It can access a MySQL database table that contains information about regular expressions. The script can retrieve given regular expressions by name and apply operations to match, replace and split text using the regular expressions. Requirement: PHP 5.0 or higher

Multi-byte Keyword Generator can be used to Extract meta keywords from multi-byte texts. It is an enhanced version of the "Automatic Keyword Generator" class originally written by Ver Pangonilo. This version provides better word segmentation, the ability to handle multi-byte strings, and texts in multiple languages. Requirement: PHP 4.0 or higher

Simple string diff can be used to compare two strings and return the changed lines. It takes two strings and split them into arrays of lines. The script can compare the two arrays of lines and return a new text string denoting with + and - the lines that were added and removed from the first to the second string. ...

Highlighter is a WordPress plugin that allows an author to highlight specific words, sentences, and images. After activation, users can select text and images, right-click and a special popup menu will appear with special options. It will allow the user to share that content on Twitter, via email, or add a special comment. All highlights will automatically be added under ...

Validation Class RoyalHeart can be used to validate string values. In can take one or more string values and validated them according to multiple validation rules. Currently it can validate values for not being empty, match a regular expression, have a length between given limits, not having a string appear more than a given number of times, represent a value ...

Shref Image vs ASCII is a simple class that can convert the contents of any binary file to a stream of ASCII data and vice-versa. The resulting converted data can be saved to another file or stored in a class variable.

This class can be used to generate PDF documents in pure PHP, thus without requiring special PHP extensions. It is based on the original tcpdf PDF generator class written by Olivier Plathey, but it was adapted to support right to left texts and the Farsi idiom. Requirements: PHP 5.0 or Higher

This is a simple class that can be used to convert a text string into HTML entities. It converts all characters in a text string into another string that represents the same characters in HTML using the decimal character representation. Requirements: PHP 4.0 or Higher

This class can be used to generate stems from words encoded using UTF-8. It takes a text string with words encoded using UTF-8 and converts it into stems strings like the soundex algorithm does, so similar sounding words result in the same word. The class supports both English and Cyrillic words. Requirement: PHP5.0 or Higher

This class can be used to spell number with words of Serbian or other idioms. It can parse a number and generate a string that spell the number in one of the supported idioms. Currently it supports Serbian, English, German, Russian, Portuguese, Italian, Spanish, etc.. Requirement: PHP 5.0 or Higher