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 β
Flag | Language | String | Enum |
---|---|---|---|
π¬π§ | 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!