定制 zepi/unicode 二次开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-23