2017 © Pedro Peláez
 

library php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

image

featherbb/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  • Friday, February 17, 2017
  • by FeatherBB
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

PHPCI Travis Latest Version Total downloads License SensioLabs Insight, (*1)

PHP-UTF-8

This is fork of the [FSX/php-utf8][8] library. It was created because the author of origin library doesn`t support it., (*2)

php-utf8 is a UTF-8 aware library of functions mirroring PHP's own string functions. Does not require PHP mbstring extension though will use it, if found, for a (small) performance gain., (*3)

The project was initially on sourceforge where it died due to lack of development and support. This project has been forked and moved to github.com so that many more people can actually contribute with more ease., (*4)

Use the issue tracker here on github.com, to post about problems and feature requests., (*5)

Please feel free to fork and get back to us with fork requests for optimizations and new features., (*6)

Documentation & Usage Information

Using the php-utf-8 library is quite easy. Just include the php-utf8.php and any additional functions that you may need from the functions folder., (*7)

Sample Code:, (*8)

// get the core functions included ...
require('php-utf8_path/php-utf8.php');

// ... and any other functions/*.php or utils/*.php files you may need.
require('php-utf8_path/functions/trim.php');

Make sure that you are confident about using the library by reading Character Sets / Character Encoding Issues and Handling UTF-8 with PHP., (*9)

Use these functions only if you really need them & you understand why you need to use them., (*10)

In particular, do not blindly replace all use of PHP's string functions which functions found here. Most of the time you will not need to, and you will be introducing a significant performance overhead to your application., (*11)

Most of the functions here are not operating defensively, mainly for performance reasons. For example there is no extensive parameter checking and it is assumed that they are fed with well formed UTF-8. This is particularly relevant when is comes to catching badly formed UTF-8. You should screen input on the outer perimeter with help from functions in the utils/validation.php and utils/bad.php files., (*12)

Throughout the library all ASCII characters (control characters included) are treated as valid throughout the library. Make sure you take the appropriate measures before outputting into XML since it can become ill-formed with some control characters. more info, (*13)

Licensing

The initial code of php-utf-8 is published under LGPL. Please find a copy of the license in the LICENSE file., (*14)

Parts of the code in this library come from other places, under different licenses. The authors involved have been contacted (see below). Attribution for which code came from elsewhere can be found in the source code itself., (*15)

  • Andreas Gohr / Chris Smith of Dokuwiki. There is a fair degree of collaboration/exchange of ideas and code between Dokuwiki's UTF-8 library and phputf8. Although Dokuwiki is released under GPL, its UTF-8 library is released under LGPL, hence no conflict with phputf8
  • Henri Sivonen (site) has also given permission for his code to be released under the terms of the LGPL. He ported a Unicode / UTF-8 converter from the Mozilla codebase to PHP, which is re-used in php-utf-8.

The Versions

17/02 2017

dev-master

9999999-dev https://github.com/featherbb/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

17/02 2017

1.1.4

1.1.4.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

15/01 2016

dev-release-1.1

dev-release-1.1 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

15/01 2016

1.1.3

1.1.3.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

15/01 2016

1.2.3

1.2.3.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

07/11 2015

1.2.2

1.2.2.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

01/05 2015

1.2.1

1.2.1.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

09/11 2014

1.2.0

1.2.0.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.4.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

08/06 2014

1.1.2

1.1.2.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

26/10 2013

v1.1.1

1.1.1.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

20/10 2013

v1.1.0

1.1.0.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

The Development Requires

utf-8 i18n unicode utf8

02/10 2013

v1.0.0

1.0.0.0 https://github.com/corpsee/php-utf-8

A library for UTF-8 in PHP providing UTF-8 aware functions to mirror PHP's own string functions. The library doesn't require PHP mbstring extension although, if found, it will use it to gain performance.

  Sources   Download

LGPL-2.1

The Requires

  • php >=5.3.0
  • lib-pcre *

 

utf-8 i18n unicode utf8