PHP Strings

Open-source PHP projects categorized as Strings

Top 22 PHP String Projects

  • GitHub repo UUID

    A PHP library for generating universally unique identifiers (UUIDs).

    Project mention: Things You Should Do Now | | 2021-02-19

    just make sure you have everything configured correctly on your system if using UUIDs:

    In the types of systems that need UUIDs there is probably no easy way to check for collisions. The prospect of mystery data corruption with no ability to trace it down frightens the hell out of me.

    The only reason that issue was reported is because someone was actually doing the collision checking. That's not going to be the norm in UUID systems. Think about it.

  • GitHub repo Mobile-Detect

    Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

    Project mention: What's the best way to NOT load a chunk of code on mobile devices? I don't just want to hide it with CSS, I want this bit to not load at all on mobile devices. | | 2021-04-12

    Use composer require mobiledetect/mobiledetectlibto use MobileDetect.

  • GitHub repo Agent

    👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

    Project mention: Internal system analytics recommendation with basic information only | | 2021-04-08

    Also, is there any recommendations to filter a bot request out? I've seen a few packages that does something like " $agent->isRobot();", (jenssegers/agent), but I don't know how good it is and if you have any recommendations I will be grateful.

  • GitHub repo Slugify

    Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.

  • GitHub repo Stringy

    A PHP string manipulation library with multibyte support

  • GitHub repo Device Detector

    The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.

  • GitHub repo Jieba-PHP

    "結巴"中文分詞:做最好的 PHP 中文分詞、中文斷詞組件。 / "Jieba" (Chinese for "to stutter") Chinese text segmentation: built to be the best PHP Chinese word segmentation module.

  • GitHub repo Regex

    A sane interface for php's built in preg_* functions (by spatie)

  • GitHub repo URLify

    A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

  • GitHub repo Portable UTF-8

    🉑 Portable UTF-8 library - performance optimized (unicode) string functions for php.

  • GitHub repo Color Jizz

    ColorJizz is a PHP library for manipulating and converting colors.

  • GitHub repo Portable ASCII

    🔡 Portable ASCII library - performance optimized (ascii) string functions for php.

  • GitHub repo ANSI to HTML5

    An ANSI to HTML5 converter

  • GitHub repo HtmlMin

    :clamp: HtmlMin: HTML Compressor and Minifier via PHP

  • GitHub repo HaikunatorPHP

    Generate Heroku-like random names to use in your php applications.

  • GitHub repo Case converter

    Convert strings between 13 naming conventions: Snake case, Camel case, Kebab case, Pascal case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Title case, Sentence case and Dot notation.

  • GitHub repo Google Translate For Free

    Library for free use Google Translator. With attempts connecting on failure and array support.

  • GitHub repo Patchwork UTF-8

    Extensive, portable and performant handling of UTF-8 and grapheme clusters for PHP

  • GitHub repo Url highlight

    PHP library to parse urls from string input

  • GitHub repo Text

    Text - Simple 1 Class Text Manipulation Library (by kzykhys)

  • GitHub repo Opis String

    Multibyte strings as objects

  • GitHub repo Russian metaphone phonetic algorithm implementation for PHP

    Russian metaphone algorithm implementation

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-12.


What are some of the best open-source String projects in PHP? This list will help you:

Project Stars
1 UUID 11,109
2 Mobile-Detect 9,682
3 Agent 3,641
4 Slugify 2,634
5 Stringy 2,452
6 Device Detector 1,937
7 Jieba-PHP 1,079
8 Regex 915
9 URLify 635
10 Portable UTF-8 405
11 Color Jizz 274
12 Portable ASCII 211
13 ANSI to HTML5 187
14 HtmlMin 106
15 HaikunatorPHP 95
16 Case converter 85
17 Google Translate For Free 83
18 Patchwork UTF-8 70
19 Url highlight 61
20 Text 50
21 Opis String 50
22 Russian metaphone phonetic algorithm implementation for PHP 5