定制 rafreis/accentuation 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rafreis/accentuation

最新稳定版本:2.0.2

Composer 安装命令:

composer require rafreis/accentuation

包简介

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

README 文档

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

统计信息

  • 总下载量: 877
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-30