anderss0n/persiana 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

anderss0n/persiana

Composer 安装命令:

composer require anderss0n/persiana

包简介

Persiana is a Persian text normalizer utility that support English for every day usage with texts.

README 文档

README

Build Status codecov.io Latest Stable Version Total Downloads Latest Unstable Version License

Persiana

Persiana is a Persian text normalizer utility that support English for every day usage with texts.

Install

by Composer

composer require anderss0n/persiana

by Git

git clone git@github.com:MrAnderss0n/Persiana.git

How to use

Use the following class into your PHP code:

use Anderss0n\Persiana\Normalizer;

Simple example:

echo Normalizer::tidySpaces('test the  new     package.'); // OUTPUT: test the new package.

List of methods

Static Methods Description
tidySpaces Convert sequence of spaces to single space and trim it.
dropBreakingLines Drop breaking line to make sequence of text without new lines.
dropPersianPhonemes Drop general Persian vowel phonemes.
normalizePersianNumbers Convert Persian numbers to its English form.
normalizePersianLetters Convert Arabic letters to Persian one.
normalizeEnglishLetters Convert Latin letters to English one.
normalizeWhiteSpaces Convert all type of spaces to standard one.
fetchValidLetters Fetch only Persian and English letters then tidy spaces.
fetchInvalidCharacters Fetch all thing instead of Persian and English letters.
normalize Full normalize uses this class functionality to prevent repeating usage.
slug Make a slug for url usage.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固