benemohamed/unicodeblock
最新稳定版本:v1.0.1
Composer 安装命令:
composer require benemohamed/unicodeblock
包简介
Unicode block checker Check if the string is in some Unicode block with full block Character and block {form..to} , Unicode name
README 文档
README
Check if the string is in some Unicode block with full block Character and block {form..to} , Unicode name
Requirements
- PHP >= 7.0
- JSON PHP mbstring
Install
composer require benemohamed/Unicodeblock
Usage
<?php // Import Unicodeblock use Benemohamed\Unicodeblock\UnicodeBlock; var_dump(UnicodeBlock::Arabic('يبيسب')); /* -- outputs: array(5) { 'is' => bool(true) 'block1' => int(1536) 'block2' => int(1791) 'Unicode_name' => string(6) "Arabic" 'check_list' => array(1) { [0] => array(255) { (more elements)... (more elements)... [118] => string(2) "ٶ" [119] => string(2) "ٷ" [120] => string(2) "ٸ" [121] => string(2) "ٹ" [122] => string(2) "ٺ" [123] => string(2) "ٻ" [124] => string(2) "ټ" [125] => string(2) "ٽ" [126] => string(2) "پ" [127] => string(2) "ٿ" (more elements)... (more elements)... } } } */
All methods return a array
List methods
<?php use Benemohamed\Unicodeblock\UnicodeBlock; var_dump(get_class_methods(UnicodeBlock::class));
Supported all Unicode Block
Total Block and methods is: 280
Running the tests
composer test
Data
data Unicode blocks Source
Acknowledgments
统计信息
- 总下载量: 7.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-26