This package is abandoned and no longer maintained. No replacement package was suggested.

Facilitating the process of altering string encoding in PHP.

0.1.1 2014-05-29 18:38 UTC

This package is not auto-updated.

Last update: 2018-01-07 14:05:41 UTC


Version 0.1.2

String Encode is a simple PHP wrapper package to facilitate the encoding of strings in different charsets.

This is a fork of paquettg/string-encoder that supports PHP 5.3. The original author has expressed his unwillingness to merge the changes necessary to make his package compatible with PHP 5.3. I created this fork to fix that.


This package can be found on packagist and is best loaded using composer.


This is a really simple package so there is not much to say about it. The following is just about the only usage for this package at the moment.

use stringEncode\Encode;

$str    = "Calendrier de l'avent façon Necta!"
$encode = new Encode;
$newstr = $encode->convert($str);
echo $newstr; // "Calendrier de l'avent façon Necta!" in UTF-8 encoding (default)

As you can see, it is a very simple encoding converter.