php-extended / php-api-org-unicode-object
A library that implements the php-extended/php-api-org-unicode-interface library
7.0.7
2024-12-08 23:33 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-08 22:41:40 UTC
README
A php API wrapper to interpret data files of the unicode consortium at www.unicode.org.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-api-org-unicode-object ^7
Basic Usage
You may use this library the following way :
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>
License
MIT (See license file).