php-extended/php-ulid-parser-object

This package is abandoned and no longer maintained. The author suggests using the php-extended/php-ulid-object package instead.

A library that implements the php-extended/php-ulid-parser-interface library.

3.0.23 2021-06-24 17:07 UTC

README

A library that implements the php-extended/php-ulid-parser-interface library.

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-ulid-parser-object": "^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

This library may be used the following way :

To parse an ulid :


use PhpExtended\Ulid\UlidParser;

$parser = new UlidParser();
$ulid = $parser->parse('<put here your ulid string>');
// $ulid instanceof UlidInterface

License

MIT (See license file).