quasilyte / kphp-uuid
A simple UUID generation package for KPHP
dev-master
2021-08-24 09:59 UTC
Requires (Dev)
- vkcom/kphpunit: dev-master
This package is not auto-updated.
Last update: 2024-11-13 01:47:36 UTC
README
KPHP UUID demo library
WARNING: this is not a real UUID library. It's just an example project for my KPHP testing/benchmarking article.
Installation via composer (published at packagist.org/packages/quasilyte/kphp-uuid):
$ composer require quasilyte/kphp-uuid:dev-master
Usage:
<?php require_once __DIR__ . '/vendor/autoload.php'; use Quasilyte\KPHP\Uuid\UUID; var_dump(UUID::v4());
Running tests and benchmarks:
# Running tests in PHP mode (PHPUnit) $ phpunit --bootstrap ./vendor/autoload.php tests # Run tests in KPHP mode (KPHPUnit) $ ktest phpunit tests # Run KPHP benchmarks $ ktest bench ./benchmarks/UUIDBenchmark.php
This repository includes a Makefile
for convenience:
# Run all tests (PHP + KPHP) $ make test