reisraff/accentuation
最新稳定版本:2.0.2
Composer 安装命令:
composer require reisraff/accentuation
包简介
This repository works making a parser in some string replacing the accented characters
README 文档
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
统计信息
- 总下载量: 276.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-13