Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serhiicho/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.
https://github.com/serhiicho/ago
converter converts datetime package php time timeago
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/serhiicho/ago
- Owner: SerhiiCho
- License: mit
- Created: 2019-10-23T08:05:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T06:53:55.000Z (8 months ago)
- Last Synced: 2024-04-26T07:42:27.270Z (8 months ago)
- Topics: converter, converts, datetime, package, php, time, timeago
- Language: PHP
- Homepage: https://serhiicho.github.io/ago-docs/
- Size: 201 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Ago package](https://serhii.io/storage/other/ago.png)
[![Ago](https://github.com/SerhiiCho/ago/actions/workflows/php.yml/badge.svg?branch=main)](https://github.com/SerhiiCho/ago/actions/workflows/php.yml)
[![Total Downloads](https://poser.pugx.org/serhii/ago/downloads)](https://packagist.org/packages/serhii/ago)
[![License](https://poser.pugx.org/serhii/ago/license)](https://packagist.org/packages/serhii/ago)Date/time converter into "n time ago" format that supports multiple languages, such as π·πΊ π¬π§ π³π± πΊπ¦ π©πͺ. You can contribute any language that you wish easily by creating a pull request. When new PHP version comes out, this package will be updated to support it as soon as possible.
This package is well tested, optimized and already used in many production apps. It has shown itself pretty well. If you find any issues or bugs π, please create an [issue](https://github.com/SerhiiCho/ago/issues/new), and I'll fix it as soon as I can.
### Follow the [official documentation](https://serhiicho.github.io/ago-docs/) for more information
## π Quick Start
```bash
composer require serhii/ago
```## License
The Ago project is licensed under the [MIT License](https://github.com/SerhiiCho/ago/blob/main/LICENSE)