ago

Converts given date into a nice readable format. Supports multiple languages. Example will be "1 hour ago", "2 days ago", "1 second ago", "Online" and so on.

MIT License

Downloads
2.1K
Stars
6
Committers
2
ago - v3.2.5 Latest Release

Published by SerhiiCho about 2 months ago

  • Formatted code with Pint
  • Update README.md file
  • Update composer packages
ago - v3.2.4

Published by SerhiiCho 7 months ago

  • Modified LICENSE file
  • Updated composer packages
ago - v3.2.3

Published by SerhiiCho 7 months ago

  • Added more information to README.md file
  • Update nestbot/carbon package from ^3.0 to ^3.2.1
ago - v3.2.2

Published by SerhiiCho 8 months ago

  • Formatted CHANGELOG.md file
  • Small code refactoring
  • Added a new badge to a README.md file
  • Moved scripts from Makefile to composer.json
  • Removed slashes before each PHP native function
ago - v3.2.1

Published by SerhiiCho 8 months ago

  • Added a "License" section to README.md file
  • Added more tests
  • Refactored tests
ago - v3.2.0

Published by SerhiiCho 8 months ago

  • Add support for the German language
ago - Release v3.0.6

Published by SerhiiCho 9 months ago

  • Removed badge from readme.md file
  • Add description to each case in Option enum
ago - v3.0.5

Published by SerhiiCho 12 months ago

  • Added support for PHP 8.3
ago - v3.0.4

Published by SerhiiCho about 1 year ago

  • Added support for PHP 8.2
  • Connected Pint package to the project
ago - v3.0.3

Published by SerhiiCho about 2 years ago

Refactored code

ago - v3.0.2

Published by SerhiiCho over 2 years ago

  • Removed comment in code examples in CONTRIBUTE.md file;
  • Typo in README.md file;
ago - v3.0.1

Published by SerhiiCho over 2 years ago

  • 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;
ago - v3.0.0

Published by SerhiiCho over 2 years ago

  • 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;
ago - v2.3.1

Published by SerhiiCho over 2 years ago

  • Added more information to CONTRIBUTE.md file;
  • Added support for Dutch language;
ago - v2.3.0

Published by SerhiiCho over 2 years ago

  • 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.
ago - v2.2.1

Published by SerhiiCho almost 3 years ago

  • Fixed mistake in composer.json file with carbon library being as a dev dependency
ago - v2.2.0

Published by SerhiiCho almost 3 years ago

  • 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.
ago - v2.1.3

Published by SerhiiCho almost 3 years ago

  • 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: https://github.com/SerhiiCho/ago/pull/30

ago - v2.1.2

Published by SerhiiCho almost 3 years ago

  • 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: https://github.com/SerhiiCho/ago/pull/29

ago - v2.1.1

Published by SerhiiCho almost 3 years ago

  • Added support for PHP 8.1
Package Rankings
Top 17.99% on Packagist.org
Badges
Extracted from project README
Ago