wiki-grav/plugins/automagic-images/vendor/paquettg/string-encode
2022-06-28 13:43:53 +02:00
..
src/stringEncode (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
tests (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
composer.json (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
CONTRIBUTING.md (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
phpunit.php (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
phpunit.xml (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00
README.md (Grav GitSync) Automatic Commit from RealStickman 2022-06-28 13:43:53 +02:00

String Encode

Version 1.0.1

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

Install

This package can be found on packagist and is best loaded using composer. It does require php 7.1 or higher, so keep that in consideration.

Usage

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;
$encode->detect($str);
$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.