Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Date Converter Bundle Laravel Package

artur-gajewski/date-converter-bundle

View on GitHub
Deep Wiki
Context7

AgaDateConverterBundle

About

This bundle adds a Twig Extension with a filter for automatically converting date to more human readable format:

  • Yesterday
  • 5 minutes ago
  • 2 hours ago
  • 3 days ago

and many more formats...

Travis CI status

Build Status

Installation

Add the following lines to your composer.json file and update your project's composer installation.

{
    "require": {
       "artur-gajewski/date-converter-bundle": "1.0.*@dev"
    }
}

Add this bundle to your application's kernel:

// application/ApplicationKernel.php
public function registerBundles()
{
  return array(
	  // ...
	  new Aga\DateConverterBundle\DateConverterBundle(),
	  // ...
  );
}

Make the Twig extensions available by updating your services configuration

// app/config/services.yml
aga_dateconverter.twig.extension:
	class: Aga\DateConverterBundle\Extension\DateConverterTwigExtension  
	tags:
		- { name: twig.extension }

Usage

This library adds a filter for twig templates that can be used like so:

{{ item.created | ago }}

License

See LICENSE.

Contact

Email: [email protected]

Skype: artur.t.gajewski.com

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource