ciatog/inflector

简单的PHP词形还原库

1.0.0 2015-01-20 03:26 UTC

This package is not auto-updated.

Last update: 2024-09-28 17:23:02 UTC


README

Build Status Coverage Status

PHP词形还原器

PHP的一个简单的词形还原库

使用方法

使用 composer require ciatog/inflector 安装最新版本

<?php

use Ciatog\Inflector;

$inflector = new Inflector();

// Outputs: Testing 123
echo $inflector->humanise("testing-123");

// Outputs: testing_123
echo $inflector->machinise("testing 123");

// Outputs: testing-123
echo $inflector->dasherise("testing 123");

作者

Keith Webster - keith.webster@gmail.com - http://keith-webster.com

许可证

PHP词形还原器采用MIT许可证 - 有关详细信息,请参阅LICENSE.txt文件