Strings

Libraries for parsing and manipulating strings.

Newest releases
173

codeplea Aho Corasick in PHP This is a small library which implements the Aho-Corasick string search algorithm. It's coded in pure PHP and self-contained in a single file, ahocorasick.php. It's useful when you want to search f
 
10k

serbanghita Motto: "Every business should have a detection script to detect mobile readers." About Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent str
 
1.6k

WhichBrowser This is an extremely complicated and almost completely useless browser sniffing library written in PHP. Useless because you shouldn't use browser sniffing. So stop right now and go read something about feature detecting instead.
 
23

kamranahmedse php-shorthand Calculate unique shorthands for a given set of strings Inspired by ruby's abbrev module, it let's you calculate the unique set of shorthands for the given set of words. Installation U
 
650

jbroadway URLify for PHP A PHP port of URLify.js from the Django project. Handles symbols from Latin languages as well as Arabic, Azerbaijani, Czech, German, Greek, Kazakh, Latvian, Lithuanian, Persian, Polish, Romanian, Bulgari
 
154

gabrielelana Byte Units This is a utility component for parsing, formatting, converting and manipulating byte units in various formats. Usage <?php // Bytes manipulation and formatting with explici precision echo
 
51

kzykhys Text - Simple 1 Class Text Manipulation Library Do you remember PHP's string functions? If not, just wrap you text with Text! It will save a minute on your coding. Text is extracted from kzykhys/Ciconia. this is us
 
2.8k

cocur cocur/slugify Converts a string into a slug. Developed by Florian Eckerstorfer in Vienna, Europe with the help of many great contributors. Features Removes all special characters from a str
 
3.9k

jdorn SqlFormatter A lightweight php class for formatting sql statements. It can automatically indent and add line breaks in addition to syntax highlighting. History I found myself having to debug auto-generated
 
11.7k

ramsey ramsey/uuid ramsey/uuid is a PHP library for generating and working with RFC 4122 version 1, 2, 3, 4, and 5 universally unique identifiers (UUID). This project adheres to a Contributor Code of Conduct. By parti
 
280

mikeemoo #Getting started: ColorJizz-PHP uses the PSR-0 standards for namespaces, so there should be no trouble using with frameworks like Symfony 2. ###Autoloading An autoloader class is provided for when loading ColorJizz yourself. F
 
77

nicolas-grekas Patchwork UTF-8 for PHP Patchwork UTF-8 gives PHP developpers extensive, portable and performant handling of UTF-8 and grapheme clusters. It provides both : a portability layer for mbstring, iconv, and intl No
 
208

sensiolabs ANSI to HTML5 Converter This small library only does one thing: converting a text containing ANSI codes to an HTML5 fragment: require_once __DIR__.'/vendor/autoload.php'; use SensioLabs\AnsiConverter\AnsiToHtmlConve