Download the PHP package kusabi/datetime without Composer
On this page you can find all versions of the php package kusabi/datetime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kusabi/datetime
More information about kusabi/datetime
Files in kusabi/datetime
Package datetime
Short Description An extension of PHPs datetime libraries
License MIT
Informations about the package datetime
Datetime
A quality of life extension for PHPs datetime libraries
Compatibility and dependencies
This library is compatible with PHP version 7.2
, 7.3
, 7.4
, 8.0
and 8.1
.
This library has no dependencies.
Installation
Installation is simple using composer.
Or simply add it to your composer.json
file
Contributing
This library follows PSR-1 & PSR-2 standards.
Unit Tests
Before pushing any changes, please ensure the unit tests are all passing.
If possible, feel free to improve coverage in a separate commit.
Code sniffer
Before pushing, please ensure you have run the code sniffer. Only run it using the lowest support PHP version (5.6)
Static Analyses
Before pushing, please ensure you have run the static analyses tool.
Benchmarks
Before pushing, please ensure you have checked the benchmarks and ensured that your code has not introduced any slowdowns.
Feel free to speed up existing code, in a separate commit.
Feel free to add more benchmarks for greater coverage, in a separate commit.
Documentation
This section covers documentation for using the datetime library.
The library extends each of the native PHP datetime classes to make each of them a little more useful and user-friendly.
Examples of whole library
Using the DateTime class
The DateTime
class has been extended to add new ways of creating, reading, modifying and converting the instance.
Creating DateTime instances
Reading DateTime instances
Modifying DateTime instances
Converting DateTime instances
Using the DateInterval class
The DateInterval
class has been extended to add new ways of creating, reading, modifying, optimising, cloning and converting the instance.
Creating DateInterval instances
Reading DateInterval instances
Modifying DateInterval instances
Using the DatePeriod class
The DatePeriod
class has been extended to add new ways of creating, reading, modifying, optimising, cloning and converting the instance.