Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way.

Overview
You might also like...
A tiny PHP class-based program to analyze an input file and extract all of that words and detect how many times every word is repeated

A tiny PHP class-based program to analyze an input file and extract all of that words and detect how many times every word is repeated

A PHP class which allows the decoding and encoding of a wider variety of characters compared to the standard htmlentities and html_entity_decode functions.

The ability to encode and decode a certain set of characters called 'Html Entities' has existed since PHP4. Amongst the vast number of functions built into PHP, there are 4 nearly identical functions that are used to encode and decode html entities; despite their similarities, however, 2 of them do provide additional capabilities not available to the others.

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.

SqlFormatter A lightweight php class for formatting sql statements. It can automatically indent and add line breaks in addition to syntax highlighting

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

cocur/slugify Converts a string into a slug. Developed by Florian Eckerstorfer in Vienna, Europe with the help of many great contributors. Features Re

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

URLify for PHP A fast PHP slug generator and transliteration library, started as a PHP port of URLify.js from the Django project. Handles symbols from

ColorJizz is a PHP library for manipulating and converting colors.

#Getting started: ColorJizz-PHP uses the PSR-0 standards for namespaces, so there should be no trouble using with frameworks like Symfony 2. ###Autolo

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

GoogleTranslateForFree Packagist: https://packagist.org/packages/dejurin/php-google-translate-for-free Library for free use Google Translator. With at

:clamp: HtmlMin: HTML Compressor and Minifier via PHP

🗜ī¸ HtmlMin: HTML Compressor and Minifier for PHP Description HtmlMin is a fast and very easy to use PHP library that minifies given HTML5 source by r

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.

SqlFormatter A lightweight php class for formatting sql statements. It can automatically indent and add line breaks in addition to syntax highlighting

Comments
  • Add missing return type to AsciiSlugger::getLocale()

    Add missing return type to AsciiSlugger::getLocale()

    Got the following issue this morning in symfony 5.4-RC1 with php 8.1:

    !!  
    !!  Fatal error: Declaration of Symfony\Component\String\Slugger\AsciiSlugger::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in /opt/project/vendor/symfony/string/Slugger/AsciiSlugger.php on line 93
    !!  Symfony\Component\ErrorHandler\Error\FatalError {#6153
    !!    #message: "Compile Error: Declaration of Symfony\Component\String\Slugger\AsciiSlugger::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string"
    !!    #code: 0
    !!    #file: "./vendor/symfony/string/Slugger/AsciiSlugger.php"
    !!    #line: 93
    !!    -error: array:4 [
    !!      "type" => 64
    !!      "message" => "Declaration of Symfony\Component\String\Slugger\AsciiSlugger::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string"
    !!      "file" => "/opt/project/vendor/symfony/string/Slugger/AsciiSlugger.php"
    !!      "line" => 93
    !!    ]
    !!  }
    !!  
    
    opened by Staormin 1
Releases(v6.1.9)
  • v6.1.9(Dec 28, 2022)

    Changelog (https://github.com/symfony/string/compare/v6.1.8...v6.1.9)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.0.17(Dec 28, 2022)

    Changelog (https://github.com/symfony/string/compare/v6.0.16...v6.0.17)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v5.4.17(Dec 28, 2022)

    Changelog (https://github.com/symfony/string/compare/v5.4.16...v5.4.17)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.2.2(Dec 16, 2022)

    Changelog (https://github.com/symfony/string/compare/v6.2.1...v6.2.2)

    • bug #48615 Fix getting the name of closures on PHP 8.1.11+ (nicolas-grekas)
    Source code(tar.gz)
    Source code(zip)
  • v6.2.0(Nov 30, 2022)

  • v6.2.0-RC1(Nov 25, 2022)

  • v6.2.0-BETA3(Nov 19, 2022)

  • v6.2.0-BETA2(Oct 28, 2022)

  • v6.1.7(Oct 28, 2022)

  • v6.0.15(Oct 28, 2022)

  • v5.4.15(Oct 28, 2022)

  • v6.2.0-BETA1(Oct 24, 2022)

    Changelog (https://github.com/symfony/string/compare/v6.1.6...v6.2.0-BETA1)

    • feature #47264 Add support for emoji in AsciiSlugger (lyrixx)
    Source code(tar.gz)
    Source code(zip)
  • v6.1.6(Oct 12, 2022)

  • v6.0.14(Oct 12, 2022)

  • v5.4.14(Oct 12, 2022)

  • v6.1.5(Sep 30, 2022)

  • v6.0.13(Sep 30, 2022)

  • v5.4.13(Sep 30, 2022)

  • v6.1.4(Aug 26, 2022)

  • v6.0.12(Aug 26, 2022)

  • v5.4.12(Aug 26, 2022)

  • v6.1.3(Jul 29, 2022)

  • v6.0.11(Jul 29, 2022)

  • v5.4.11(Jul 29, 2022)

  • v6.1.2(Jun 26, 2022)

  • v6.0.10(Jun 26, 2022)

  • v5.4.10(Jun 26, 2022)

  • v6.1.0(May 27, 2022)

  • v6.0.9(May 27, 2022)

  • v5.4.9(May 27, 2022)

ATOMASTIC 14 Mar 12, 2022
🉑 Portable UTF-8 library - performance optimized (unicode) string functions for php.

?? Portable UTF-8 Description It is written in PHP (PHP 7+) and can work without "mbstring", "iconv" or any other extra encoding php-extension on your

Lars Moelleken 474 Dec 22, 2022
Render Persian Text (UTF-8 Hexadecimals)

Persian-Glyphs Purpose This class takes Persian text (encoded in Windows-1256 character set) as input and performs Persian glyph joining on it and out

Rf 3 Aug 25, 2021
PHP library to detect and manipulate indentation of strings and files

indentation PHP library to detect and manipulate the indentation of files and strings Installation composer require --dev colinodell/indentation Usage

Colin O'Dell 34 Nov 28, 2022
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.

Case converter Use this library to convert string between: Name Method Output example ?? Camel case toCamel() myNameIsBond ??‍?? Pascal case toPascal(

Jawira Portugal 147 Dec 24, 2022
Multibyte strings as objects

Opis String Multibyte strings Opis String is a tiny library that allows you to work with multibyte encoded strings in an object-oriented manner. The l

Opis 58 Oct 6, 2022
Treating botanical nomenclature like code

Open Plant Names NOTE: At this point I'm trying this out as an idea. I need to check that what is written here will work. e.g. how many files will Git

Roger Hyam 4 Mar 23, 2022
PHP API for Notion

Access Notion API from you PHP application This package allows you to use the Notion API from PHP. Installation This package requires PHP => 7.4. You

64 Robots 17 Sep 25, 2022
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.

DeviceDetector Code Status Description The Universal Device Detection library that parses User Agents and detects devices (desktop, tablet, mobile, tv

Matomo Analytics 2.4k Jan 5, 2023
php-crossplane - Reliable and fast NGINX configuration file parser and builder

php-crossplane Reliable and fast NGINX configuration file parser and builder ℹī¸ This is a PHP port of the Nginx Python crossplane package which can be

null 19 Jun 30, 2022