Releases: technodelight/php-time-ago
Releases · technodelight/php-time-ago
Minor update
Contains a minor refactor to not use traits anymore
Updates for convenience and usability
- add
__toString
method to TimeAgo - add new static constructor method
- changes built-in language autoloading to use classes (BC Break!)
Add factory method to create TimeAgo with a built-in translation
Added ::withTranslation
method to instantiate TimeAgo more easily with only providing the DateTime
object and the language code
Fix composer defs
1.1.1 Add license information
Add translation loader
- Adds the ability to load bundled translations or from a custom location.
- Ability to detect current system language code and provide a translation based on this information
Fully OOP version
Full rewrite of the original implementation, accepts DateTime objects and custom translations