2017 © Pedro PelĂĄez
 

library nodiacritic

Tiny helper function that removes all diacritical signs from characters

image

vria/nodiacritic

Tiny helper function that removes all diacritical signs from characters

  • Thursday, April 27, 2017
  • by riabchenkovlad
  • Repository
  • 1 Watchers
  • 2 Stars
  • 17,945 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

nodiacritic

Build Status Total Downloads, (*1)

Tiny helper function that removes all diacritical signs from characters. Function is aware of German and Danish diacritic particularities., (*2)

Installation

composer.json, (*3)

"require": {
    "vria/nodiacritic": "0.*"
}

Use

use VRia\Utils\NoDiacritic;

$noDiacriticString = NoDiacritic::filter("Révolution française");

As expected, the result is Revolution francaise., (*4)

The library is aware of particularities in German and Danish language:, (*5)

use VRia\Utils\NoDiacritic;

$noAccentsNiceStreet = NoDiacritic::filter("Schöne straße", "de");

The result is Schoene strasse., (*6)

The code is inspired by WordPress' remove_accents function., (*7)

The Versions

27/04 2017

dev-master

9999999-dev https://github.com/vria/nodiacritic

Tiny helper function that removes all diacritical signs from characters

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3

 

The Development Requires

filter text string accent diacritic

18/09 2016

0.1.2

0.1.2.0 https://github.com/vria/nodiacritic

Tiny helper function that removes all diacritical signs from characters

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.3

 

The Development Requires

filter text string accent diacritic