reisraff / accentuation
This repository works making a parser in some string replacing the accented characters
Installs: 236 132
Dependents: 8
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- phploc/phploc: 2.0.*
- phpmd/phpmd: 2.1.*
- phpunit/phpunit: 4.5.*
- sebastian/phpcpd: 2.0.*
- squizlabs/php_codesniffer: 2.0.*@dev
This package is auto-updated.
Last update: 2024-11-28 04:16:00 UTC
README
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