定制 bitandblack/syllable-php 二次开发

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

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

bitandblack/syllable-php

Composer 安装命令:

composer require bitandblack/syllable-php

包简介

PHP Syllable splitting and hyphenation

README 文档

README

PHP from Packagist Codacy Badge Latest Stable Version Total Downloads License

Syllable

PHP Syllable splitting and hyphenation.

Introduction

Runs in PHP ^7.2 in an object-oriented way.

This library is based on the work by Corey Ballou which is based on the work by Martijn van der Lee which is based on the work by Frank M. Liang http://www.tug.org/docs/liang/ and the many volunteers in the TeX community.

Many languages supported. i.e. english (us/uk), spanish, german, french, dutch, italian, romanian, russian, etc. 76 languages in total.

Language sources: http://tug.org/tex-hyphen/#languages

Please note: Even though v1.6 is ready for the use with PHP ^7.2 we're still not done refactoring this library.

Installation

This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/syllable-php.

Usage

<?php

use BitAndBlack\Syllable\Syllable;
use BitAndBlack\Syllable\Hyphen\Text;

$syllable = new Syllable(
    'en-us',
    'path/to/language/files',
    'cache/directory',
    new Text('-')
);

// Su-per-cal-ifrag-ilis-tic-ex-pi-ali-do-cious
$syllable->hyphenateText('Supercalifragilisticexpialidocious');

// array(';Re', 'dun', 'dan', 't, punc', 'tu', 'a', 'tion...')
$syllable->splitWord(';Redundant, punctuation...');

// array(';Re', 'dun', 'dant, punc', 'tu', 'a', 'tion...')
$syllable->splitText(';Redundant, punctuation...');

Help

If you have any questions feel free to contact us under syllable@bitandblack.com.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固