pinefor/string-forge

本包最新版本(dev-master)没有提供许可证信息。

一个充满有用的字符串操作函数的仓库

dev-master 2014-06-02 11:15 UTC

This package is not auto-updated.

Last update: 2024-09-24 07:07:53 UTC


README

一个充满有用的字符串操作函数的仓库

需求

  • PHP 5.4.x
  • neitanod/forceutf8

安装

推荐通过 composer 安装 StringForge。您可以在 Packagist 上查看 包信息。

{
    "require": {
        "pinefor/string-forge": "dev-master"
    }
}

示例

use StringForge\StringForge;

$forge = new StringForge();
$stringObj = $forge->create('¡¿ÁaéE323úüÜèóïç232ÇñÑ?!');
echo (string) $stringObj->asciify()->removeNum();
//Returns: AaeEuuUeoicCnN?!

测试

测试文件位于 tests 文件夹中。要运行测试,您需要 PHPUnit。示例

$ phpunit --configuration phpunit.xml.dist

许可证

MIT,见 LICENSE