https://github.com/codemedic/php-chrono
Clock and time utilities for PHP, with focus on accuracy and testability.
https://github.com/codemedic/php-chrono
Last synced: 4 months ago
JSON representation
Clock and time utilities for PHP, with focus on accuracy and testability.
- Host: GitHub
- URL: https://github.com/codemedic/php-chrono
- Owner: codemedic
- License: mit
- Created: 2020-08-14T14:20:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T12:51:53.000Z (about 2 years ago)
- Last Synced: 2025-01-14T10:49:14.676Z (over 1 year ago)
- Language: PHP
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Chrono
[](https://travis-ci.com/codemedic-oss/php-chrono)
Clock and time utilities with focus on accuracy and testability.
The design is influenced by [`chrono`](https://en.cppreference.com/w/cpp/chrono) library in C++ and [`time.Duration`](https://golang.org/pkg/time/) library in golang.
The one reason, if you need convincing, to use this library would be to enhance the testability of your code that relies on system-time. See [examples](examples).
### API Reference
Documentation can be [found here](docs/phpdoc.md).
# How to contribute?
Please feel free to fork and submit a pull request. Bug fixes, improvements, unit-tests and usability comments are most welcome.
If you are to contribute code, please do log an issue before starting to work on the code. Your changes should come with working unit tests; all tests must pass.
Coding standard followed here is `PSR-2`.
## License
This library is licensed under [MIT license](LICENSE).