2017 © Pedro Peláez
 

library strip-accents

Removes accents from strings

image

codeinc/strip-accents

Removes accents from strings

  • Thursday, March 15, 2018
  • by joanfabregat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 500 % Grown

The README.md

Strip accents

This PHP 7 library removes accent from strings. It is based on the sample code published here., (*1)

Usage

<?php
use CodeInc\StripAccents\StripAccents;

echo StripAccents::strip("C'est une super chaîne de caractères avec beaucoup d'accents");
// echoes: C'est une super chaine de caracteres avec beaucoup d'accents

echo StripAccents::strip("ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ");
// echoes: AAAAAACEEEEIIIIOOOOOUUUUYaaaaaaceeeeiiiioooooouuuuyy

echo StripAccents::stripNonPrint("ABC ÀÈÝ 是我这");
// echoes: ABC AEY ---

// You can specify any encoding supported by htmlentities() as a second parameter
echo StripAccents::strip("A strïng with àccénts", "iso-8859-1");

Installation

This library is available through Packagist and can be installed using Composer:, (*2)

composer require codeinc/strip-accents

License

This library is published under the MIT license (see the LICENSE file)., (*3)

The Versions

15/03 2018

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/CodeIncHQ/StripAccents

Removes accents from strings

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

15/03 2018

dev-master

9999999-dev https://github.com/CodeIncHQ/StripAccents

Removes accents from strings

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

15/03 2018

1.0.0

1.0.0.0 https://github.com/CodeIncHQ/StripAccents

Removes accents from strings

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

15/03 2018

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/CodeIncHQ/StripAccents

Removes accents from strings

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires