定制 heureka/inflection 二次开发

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

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

heureka/inflection

最新稳定版本:v3.0.4

Composer 安装命令:

composer require heureka/inflection

包简介

Czech inflection library

README 文档

README

Build Status

Czech inclension (declension), české skloňování

This extension should provide same functionality and API as this PHP extension.

Usage

Install with composer:

$ composer require heureka/inflection
<?php

require_once __DIR__ . '/vendor/autoload.php';

$inflection = new Inflection();
$inflected = $inflection->inflect('vlastní píseček');

echo "Nebudu si hrát jen na $inflected[6], ale kopat za komunitu";
// Nebudu si hrát jen na vlastním písečku, ale kopat za komunitu

echo "$inflected[8] nejsou vždy to nejlepší";
// vlastní písečky nejsou vždy to nejlepší

Tests

$ docker build . -t inflection:latest
$ docker run --rm -ti inflection:latest composer exec phpunit tests

Based on original work by Pavel Sedlák, Tomáš Režnar.

This library is about 6 times faster than first Heureka implementation and 9 times faster than the original implementation.

Links

License

LGPL v2.1

Huge thanks mikulas for his great job with improvements.

统计信息

  • 总下载量: 60.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 62
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 61
  • Watchers: 18
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-2.1-or-later
  • 更新时间: 2015-09-15