{"id":15021894,"url":"https://github.com/softspring/time-ago-bundle","last_synced_at":"2025-04-10T20:32:49.575Z","repository":{"id":57055018,"uuid":"155208587","full_name":"softspring/time-ago-bundle","owner":"softspring","description":"This bundle provides a simple twig extension to human readable date diff based on translations","archived":false,"fork":false,"pushed_at":"2025-03-21T13:13:09.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"5.5","last_synced_at":"2025-03-24T18:07:31.128Z","etag":null,"topics":["symfony-bundle","twig-extension"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softspring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-29T12:30:42.000Z","updated_at":"2025-02-14T11:48:57.000Z","dependencies_parsed_at":"2023-01-31T08:30:36.492Z","dependency_job_id":"fa8f43f1-e823-4d96-ad9b-6005de96a21d","html_url":"https://github.com/softspring/time-ago-bundle","commit_stats":{"total_commits":68,"total_committers":4,"mean_commits":17.0,"dds":"0.17647058823529416","last_synced_commit":"966cbb42cb964741b7a150f0254fab5810c2d2ef"},"previous_names":[],"tags_count":111,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Ftime-ago-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Ftime-ago-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Ftime-ago-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softspring%2Ftime-ago-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softspring","download_url":"https://codeload.github.com/softspring/time-ago-bundle/tar.gz/refs/heads/5.5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290041,"owners_count":21078923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["symfony-bundle","twig-extension"],"created_at":"2024-09-24T19:57:11.612Z","updated_at":"2025-04-10T20:32:49.561Z","avatar_url":"https://github.com/softspring.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Time ago bundle\n\n![Latest Stable](https://img.shields.io/packagist/v/softspring/time-ago-bundle?label=stable\u0026style=flat-square)\n![Latest Unstable](https://img.shields.io/packagist/v/softspring/time-ago-bundle?label=unstable\u0026style=flat-square\u0026include_prereleases)\n![License](https://img.shields.io/packagist/l/softspring/time-ago-bundle?style=flat-square)\n![PHP Version](https://img.shields.io/packagist/dependency-v/softspring/time-ago-bundle/php?style=flat-square)\n![Downloads](https://img.shields.io/packagist/dt/softspring/time-ago-bundle?style=flat-square)\n[![CI](https://img.shields.io/github/actions/workflow/status/softspring/time-ago-bundle/ci.yml?branch=5.4\u0026style=flat-square\u0026label=CI)](https://github.com/softspring/time-ago-bundle/actions/workflows/ci.yml)\n\nThis bundle provides a simple twig extension to human readable date diff based on translations.\n\n## Installation\n\n### Applications that use Symfony Flex\n\nOpen a command console, enter your project directory and execute:\n\n```console\n$ composer require softspring/time-ago-bundle\n```\n\n### Applications that don't use Symfony Flex\n\n#### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\n$ composer require softspring/time-ago-bundle\n```\n\nThis command requires you to have Composer installed globally, as explained\nin the [installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\n#### Step 2: Enable the Bundle\n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `app/AppKernel.php` file of your project:\n\n```php\n\u003c?php\n// app/AppKernel.php\n\n// ...\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n            new Softspring\\TimeAgoBundle\\SfsTimeAgoBundle(),\n        );\n\n        // ...\n    }\n\n    // ...\n}\n```\n\n### Usage\n\n```twig\n{{ object.createdAt|time_ago }} {# for example, renders: 5 minutes ago #}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftspring%2Ftime-ago-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftspring%2Ftime-ago-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftspring%2Ftime-ago-bundle/lists"}