Skip to content

What is Ago? ​

Ago is a Zero-Dependency PHP library that provides a simple and intuitive way to format dates and times into a human-readable "n time ago" format. Whether it's 1 hour ago, 2 days ago, or Just now, this library makes it simple to provide localized, human-readable date formatting.

You can read our Usage Guide to learn how to use Ago in your projects.

Why Choose This Library? ​

You might be wondering why you should use this library over others. Here are a few reasons why it stands out:

  • No Dependencies: Unlike other date time libraries, Ago is a standalone library that doesn't depend on any other libraries or extensions.
  • Optimized Performance: Since Ago doesn't has no dependencies, it's lightweight and efficient, ensuring fast and accurate conversions.
  • Battle-Tested: Trusted and used in numerous production applications.
  • Easy to Use: Simple and intuitive API that requires minimal setup that focuses just on what you need.

Supported Languages ​

FlagLanguageStringEnum
πŸ‡¬πŸ‡§English"en"Lang::EN
πŸ‡·πŸ‡ΊRussian"ru"Lang::RU
πŸ‡ΊπŸ‡¦Ukrainian"uk"Lang::UK
πŸ‡³πŸ‡±Dutch"nl"Lang::NL
πŸ‡©πŸ‡ͺGerman"de"Lang::DE
πŸ‡¨πŸ‡³Chinese Simplified"zh"Lang::ZH

Contribute to Localization ​

Adding a new language is straightforward! Check out the contribution guide and submit a pull request with your translation. Contributions that follow the steps outlined will be reviewed and merged promptlyβ€”your help is always appreciated!

Keep updated

Make sure to update the library to the latest version to get the latest languages support.

Found an Issue? ​

If you encounter a bug πŸ› or have a feature request, please let us know by creating an issue. I'll address it promptly to keep the library running smoothly.

Let's make date formatting intuitive and localized together!