rafreis/accentuation

This package is abandoned and no longer maintained. The author suggests using the reisraff/accentuation package instead.

This repository works making a parser in some string replacing the accented characters

2.0.2 2016-02-13 23:25 UTC

This package is auto-updated.

Last update: 2021-01-27 19:09:48 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

This library works by replacing all accented characters to not accented characters.

To use

Add in your composer.json

"require" : {
    "reisraff/accentuation" : ">=2.0.2"
}

Using in your code

<?php

namespace MyNameSpace;

use Accentuation\Accentuation;

class MyClass
{
    public function test()
    {
        return Accentuation::remove('This string will be returned without accentuation áéíóú');
    }
}

Tests

To run the test suite, you need install the dependencies via composer, then run PHPUnit.

$ composer install
$ phpunit

You can also use the following command to run the most common QA checks, such as php -l, phpcs, phpunit:

$ ant check