zepi/unicode
最新稳定版本:v3.0.0
Composer 安装命令:
composer require zepi/unicode
包简介
Unicode blocks with English and German names, as well as with the regex pattern.
README 文档
README
A PHP library with all unicode blocks. For every block the library contains the English and the German name as well as the start and end value and the regex pattern to match the block.
composer require zepi/unicode
Usage
To use the library, use the following options:
a) Use the UnicodeIndex
<?php require_once(__DIR__ . '/vendor/autoload.php'); use zepi\Unicode\UnicodeIndex; $unicodeIndex = new UnicodeIndex(); // Get all blocks var_dump($unicodeIndex->getIndex()); // Get a block by key var_dump($unicodeIndex->getBlockByKey('BasicLatin'));
b) Initialize the block directly
<?php require_once(__DIR__ . '/vendor/autoload.php'); use zepi\Unicode\Block\BasicLatinBlock; $basicLatinBlock = new BasicLatinBlock(); var_dump($basicLatinBlock);
License
MIT (see LICENSE)
Copyright
Copyright 2022 Matthias Zobrist
统计信息
- 总下载量: 596
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-23