Download the PHP package eexbee/jalali-date-time-bundle without Composer
On this page you can find all versions of the php package eexbee/jalali-date-time-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eexbee/jalali-date-time-bundle
More information about eexbee/jalali-date-time-bundle
Files in eexbee/jalali-date-time-bundle
Package jalali-date-time-bundle
Short Description Brings Jalali(Persian/Iranian) DateTime to Symfony/Twig
License MIT
Homepage https://github.com/eexbee/JalaliDateTimeBundle
Informations about the package jalali-date-time-bundle
JalaliDateTimeBundle
Brings Jalali (Persian/Iranian) DateTime to Symfony/Twig
Requirements
- symfony > 3.4
Installation
composer require eexbee/jalali-date-time-bundle
Usage
This bundle provides Jalali DateTime tools to be used inside your Controllers, Twig templates and forms.
1. Twig
Use j_datetime_format twig filter to convert php DateTime object into Jalali format
You can Also pass several parameters to the filter to customize the output. Filter definition looks like this:
Example:
Checkout availabe formats
2. Form
soon
3. Service
Jalali DateTime service is automatically ready to use due to the symfony service management and dependency injection mechanism.
Format Table
All versions of jalali-date-time-bundle with dependencies
symfony/config Version ^3.4 || ^4.4 || ^5.0
symfony/dependency-injection Version ^3.4 || ^4.4 || ^5.0
symfony/http-kernel Version ^3.4 || ^4.4 || ^5.0