2017 © Pedro Peláez
 

library convert

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

image

byjg/convert

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  • Friday, March 9, 2018
  • by byjg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10,849 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 12 % Grown

The README.md

Convert

Build Status Opensource ByJG GitHub source GitHub license GitHub release, (*1)

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa., (*2)

Examples

<?php
$str = \ByJG\Convert\ToUTF8::fromHtmlEntities('Jo&atilde;o');
echo $str; // João

$str2 = \ByJG\Convert\FromUTF8::toHtmlEntities('João');
echo $str2; // Jo&atilde;o

$str3 = \ByJG\Convert\FromUTF8::removeAccent('João');
echo $str3; // Joao

$str4 = \ByJG\Convert\FromUTF8::toIso88591Email('João');
echo $str4; // =?iso-8859-1?Q?Jo=E3o?=

$str5 = \ByJG\Convert\FromUTF8::onlyAscii('João');
echo $str5; // Joao

// https://en.wikipedia.org/wiki/Combining_character
$str6 = \ByJG\Convert\ToUTF8::fromCombiningChar($combining);
echo $str6;

Install

Just type:, (*3)

composer install "byjg/convert"

Running Tests

vendor/bin/phpunit

Dependencies

flowchart TD  
    byjg/convert  

Open source ByJG, (*4)

The Versions

09/03 2018

dev-master

9999999-dev

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by João Gilberto Magalhães

09/03 2018

1.0.6

1.0.6.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by João Gilberto Magalhães

15/09 2017

1.0.5

1.0.5.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães

18/04 2017

1.0.4

1.0.4.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães

01/04 2017

1.0.3

1.0.3.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães

28/08 2015

1.0.2

1.0.2.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães

20/08 2015

1.0.1

1.0.1.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães

04/08 2015

1.0.0

1.0.0.0

A lightweight utility for string conversion between text from UTF8 to a lot of formats and vice-versa.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by João Gilberto Magalhães