Download the PHP package bakame/tokei without Composer
On this page you can find all versions of the php package bakame/tokei. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package tokei
Short Description Immutable value objects for expressive temporal modeling: time, duration, circular 24-hour intervals, and interval sets, without timezone handling.
License MIT
Homepage https://github.com/bakame-php/tokei
Informations about the package tokei
Tokei
Tokei (pronounced: [to̞ke̞ː] or [tokeː]) is a lightweight domain-focused set of immutable value objects for representing and operating on time, durations, including, circular 24-hour intervals, and interval sets, offering expressive temporal modeling without timezone handling.
The framework-agnostic package offers a consistent and expressive way to work with temporal values in a safe and predictable manner.
System Requirements
- PHP >= 8.4 is required but the latest stable version of PHP is recommended.
symfony/polyfill-php86to use PHP'sSortDirectionEnum in older PHP version.
You MAY need the ext-intl extension or use symfony/polyfill-intl-icu >= v1.34
to use localized string representations of Time and/or the Duration.
- On PHP 8.4,
symfony/polyfill-intl-icu>= v1.34 is required, even whenext-intlis available. - On PHP 8.5 and later,
ext-intlis sufficient and the polyfill is no longer required.
Installation
Tokei is available on Packagist and can be installed using Composer:
composer require bakame/tokei
Documentation
Full documentation can be found at https://bakame-php.github.io/tokei
Testing
The library has:
- a PHPUnit test suite.
- a coding style compliance test suite using PHP CS Fixer.
- a code analysis compliance test suite using PHPStan.
To run the tests, run the following command from the project folder.
Contributing
Contributions are welcome and will be fully credited. Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Changelog
Please see CHANGELOG for more information on what has changed recently.