decodelabs/kairos

Time and date utilities

v0.1.0 2025-06-06 12:40 UTC

This package is auto-updated.

Last update: 2025-06-06 12:41:24 UTC


README

PHP from Packagist Latest Version Total Downloads GitHub Workflow Status PHPStan License

Time and date utilities

Kairos provides simple time and date tools for PHP.

Installation

Install via Composer:

composer require decodelabs/kairos

Usage

Currently, Kairos contains a simple Timer class that can be used to measure elapsed time in PHP scripts.

use DecodeLabs\Kairos\Timer;

$timer = new Timer();
sleep(1);
$elapsed = $timer->time;
sleep(1);
$total = $timer->stop();

More coming soon.

Licensing

Kairos is licensed under the MIT License. See LICENSE for the full license text.