News
2012-01-27 18:38Project: Patchwork-UTF8 - UTF8 Support for PHP
Nicolas Grekas has shared another tool that he's pulled out of his "Patchwork" framework to make it a stand-alone tool: the Patchwork-UTF8 helper that provides matching functions to those PHP already has for regular strings, but a little smarter to work with UTF8 correctly. The PatchworkUtf8 class implements the quasi complete set of string functions that need UTF-8 grapheme clusters awareness. These functions are all static methods of the PatchworkUtf8 class. The best way to use them is to add a use PatchworkUtf8 as u; at the beginning of your files, then when UTF-8 awareness is required, prefix by u:: when calling them. In the README for the tool he talks about the functions included in the current release that match PHP's string functions as well as some additional methods like "isUtf8", "bestFit" and "strtocasefold". It relies on the mbstring, iconv and intl extensions being installed, and if they aren't, it falls back to other functionality (list of those methods included).
Last items for this period:
[2012-02-16 10:42]
Sony Ericsson diventa Sony Mobile Communication
[2012-02-16 10:30]
Microsoft-Skype: Cisco si mette di traverso
[2012-02-16 10:30]
Tom's Hardware : à quoi ressemble un pétaoctet ?
[2012-02-16 10:27]
Apple brevetta MacBook Air: pericolo per gli Ultrabook
[2012-02-16 10:25]
Windows Phone Tango: le prime immagini
Last items from the same source:
[2012-02-15 19:11]
Dave Gardner's Blog: PHP Deployment with Capistrano
[2012-02-15 18:49]
Community News: Dutch PHP Conference Ticket Prices & Schedule Update
[2012-02-15 17:22]
Codeception Blog: BDD Approach to Unit Testing with Codeception
[2012-02-15 16:35]
Sameer Borate's Blog: Building a Graph data structure in PHP
[2012-02-15 15:57]
Chris Hartjes' Blog: Organzing Slim Framework Applications
[2012-02-15 14:11]
User Group: Boston PHP Welcomes Chris Shiflett
[2012-02-14 19:04]
Pim Elshoff's Blog: Dependency management
[2012-02-14 18:14]
Matthew Turland's Blog: Setting up EC2 for Drupal with Puppet
[2012-02-14 17:07]
John Conde's Blog: My experience seeking employment as a PHP developer
[2012-02-14 16:28]


ABOUT ME
