php-extended/php-unicode-org-api

This package is abandoned and no longer maintained. No replacement package was suggested.

A php API wrapper to interpret data files of the unicode consortium at www.unicode.org

3.2.9 2021-01-31 19:28 UTC

This package is auto-updated.

Last update: 2021-02-21 20:34:03 UTC


README

A php API wrapper to interpret data files of the unicode consortium at www.unicode.org.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-unicode-org-api": "^3",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

You may use this library the following way :


use PhpExtended\Unicode\UnicodeOrgApiEndpoint;

/* @var $client \Psr\Http\Client\ClientInterface */
/* @var $uriFactory \Psr\Http\Message\UriFactory */
/* @var $requestFactory \Psr\Http\Message\RequestFactory */

$endpoint = new UnicodeOrgApiEndpoint($client, $uriFactory, $requestFactory);

$blocks = $endpoint->getBlocks();	// returns \Iterator[UnicodeOrgApiBlock]

License

MIT (See license file).