php-extended / php-api-org-unicode-object
一个实现了 php-extended/php-api-org-unicode-interface 库的库
7.0.6
2024-07-31 14:00 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-08-31 12:20:56 UTC
README
一个用于解析 www.unicode.org 网站上 Unicode 联盟数据文件的 PHP API 包装器。
安装
此库的安装通过 composer 完成,并且通过其自动加载器自动加载此库的所有类。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar require php-extended/php-api-org-unicode-object ^7
基本用法
您可以按照以下方式使用此库
use PhpExtended\UnicodeOrgApi\UnicodeOrgApiEndpoint;
use PhpExtended\Endpoint\HttpEndpoint;
/* @var $client \Psr\Http\Client\ClientInterface */
$endpoint = new UnicodeOrgApiEndpoint(new HttpEndpoint($http));
$blocks = $endpoint->getBlocks(); // returns \Iterator<UnicodeOrgApiBlock>
许可证
MIT (见许可证文件)。