Skip to content

Releases: SerhiiCho/ago

v3.0.2

28 Jan 05:20
Compare
Choose a tag to compare
  • Removed comment in code examples in CONTRIBUTE.md file;
  • Typo in README.md file;

v3.0.1

28 Jan 05:13
Compare
Choose a tag to compare
  • Removed budge from README.md file that shows stable release;
  • Added Option::JUST_NOW option that print Just now if time is within 1 minute;
  • Added throwing InvalidOptionsException when you pass JUST_NOW and ONLINE options at the same time;

v3.0.0

27 Jan 14:15
Compare
Choose a tag to compare
  • Added banner image to a README.md file;
  • Removed option UPPER that convert number to uppercase. Because I don't want this package to depend on mb string extension;

v2.3.1

27 Jan 10:24
Compare
Choose a tag to compare
  • Added more information to CONTRIBUTE.md file;
  • Added support for Dutch language;

v2.3.0

27 Jan 08:58
Compare
Choose a tag to compare
  • Added deprecation notice when you try to use Option::UPCOMING option;
  • Closed issue #34. Changed trans method to except future dates and return correct result.

v2.2.1

16 Jan 19:34
Compare
Choose a tag to compare
  • Fixed mistake in composer.json file with carbon library being as a dev dependency

v2.2.0

16 Jan 19:29
Compare
Choose a tag to compare
  • Added support for timestamps to TimeAgo::trans() method and not just strings.
  • Added support for DateTime and DateTimeImmutable to TimeAgo::trans() method.
  • Added support for Carbon and CarbonImmutable to TimeAgo::trans() method.
  • Added more tests to make sure that new features are working correctly.

v2.1.3

16 Jan 15:01
Compare
Choose a tag to compare
  • Added more info to README.md file about using second argument in Lang::set() method.
  • Improved performance of the program by caching included translations and reusing them.

Author: @SerhiiCho
Pull request: #30

v2.1.2

16 Jan 14:28
Compare
Choose a tag to compare
  • Added flags to supported languages table in README.md file.
  • Added ability to overwrite translations. Closes issue #20.
  • Added more info to README.md file.

Author: @SerhiiCho
Pull request: #29

v2.1.1

05 Dec 15:45
Compare
Choose a tag to compare
  • Added support for PHP 8.1