PHP Text Processing
Free and open source PHP Text Processing Scripts. This category contains Text Encode, translation and so on.-
HTML SQL can be used to parse and extract information from HTML documents using a query language similar to SQL to define the information to be extracted.HTML SQL can open HTML documents stored as local files or as remote pages using the Snoopy class.HTML SQL can execute a query with a syntax similar to SQL SELECT statements to search an ...
-
htmlSQL is a experimental PHP class which allows you to access HTML values by an SQL like syntax. This means that you don't have to write complex functions (regular expressions) to extract specific values. All web transfers in htmlSQL are using the Snoopy class (package version 1.2.3). But for file or string queries Snoopy is not required. You find all ...
-
ArTransliteration can be used to transliterate English text to Arabic. It looks for a set of English character sequences and transliterates to equivalent character sequences in Arabic encoded with windows-1256 character set.
-
ArCharsetD is a simple class that can be used to guess the character set encoding of an Arabic text string. It analyzes the text string and counts the frequency of occurrence of characters with certain codes.ArCharsetD computes the probability value of the text being encoded in some of the most likely character set encodings: windows-1256, iso-8859-6 and utf-8.
-
Encrypt and Decrypt any string can be used to encode and decode text strings using basic PHP functions.It generates a random encoding key that is used to scramble the input text. The resulting scrambled text is mixed with the encoding key.The decoding process recovers the encoding key from the input text and applies the inverse of the encoding process.
-
ISCII Unicode Manager can be used to convert ISCII (Hindi) characters to Unicode (UTF-8) and vice-versa.ISCII (Indian Script Code for Information Interchange) is a coding scheme for representing various Indian scripts, as well as a Latin-based script with diacritic marks used to depict Romanized Indian languages.
-
Remove comments in a string can be used to remove comments from a string of code. It can process lines of PHP code and remove all comment text that follows a comment character.By default Remove comments in a string assumes that the # character start a comment text, but it can be configured to use another comment start character.
-
cParseurl is a very simple class that wraps around the parse_url PHP function.cParseurl can parse an URL and store the URL parts in class variables for the URL scheme, host, domain, top level domain, port, user, password and query arguments.If the URL scheme is missing, it assumes it is http .
-
RodaSpell can be used to verify and correct the spelling of a text looking up in a SQL database. Currently it can work with MySQL or SQLite databases.RodaSpell can install a database spelling table that is used to store the known words and an hash that represents the way the text is spelled. The class provides a function to add ...
-
SQL Parsing is a simple class that can parse text files with a list of MySQL query statements to be executed.SQL Parsing splits the file lines, skips comment lines and gathers all consecutive lines until the one ends with semi-colon to get the complete SQL statement.Each statement is executed as MySQL query to the current default MySQL database connection.
-
String Searcher can be used to search for a given text in files of any size.String Searcher opens a given file and looks up for a given text string. It stops the search when the text is found or the end of the file has been reached.String Searcher can perform either case sensitive or insensitive searches.
-
Anagrams can generate anagrams from given words.It can take an input word and generate all anagrams permuting the order of its letters. Research can be pursued by 'brutal force' approach as well as filtered by rules.The resulting anagram words can be optionally saved to a file.
-
FSM Parser can be used to parse or preprocess any markup or programming language using a finite state machine.First it is necessary to define each state transition by specifying a regular expression to determine the format of the text to expect, the code to execute when the expected text is found, the next states of the transaction to when the ...
-
SQL Generator can be used to automatically generate common SQL queries from parameter lists. It can generate SQL queries of the types: INSERT, UPDATE, REPLACE and DELETE. The class takes the parameters that define the query data from associative arrays.SQL Generator may also return SQL date and time values from integer timestamps, equal conditions or an IN syntax from a ...
-
Test On Image can be used to render text on a background image. The letters of the text are made of graphics defined by separate image files.The letter image files can be loaded from a configurable directory. This way different text font images can be used.

