Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)