2017 © Pedro Peláez
 

symfony-bundle symfonyjdate

Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038

image

svfnix/symfonyjdate

Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038

  • Tuesday, August 29, 2017
  • by svfnix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Symfony JalaliDateTime

SensioLabsInsight Latest Stable Version License, (*1)

Symfony Bundle for converting dates from Gregorian calendar system to Jalali calendar system and vice versa. Supports dates beyond 2038.
Jalali, also known as Shamsi or Hijri Shamsi is the Iranian calendar system. It uses Salar Kaboli's jDateTime class for the conversion., (*2)

Requirements

jDateTime Requires PHP >= 5.2, (*3)

Installation

composer require svfnix/symfonyjdate

And then add the package to app/AppKernel.php, (*4)

Examples

There is two ways to use this bundle:, (*5)

Simply you can filter any variable containing a date, datetime, interval or date string:, (*6)

{{ entity.date|jdate }}

Also it's possible to chose the format:, (*7)

{{ entity.date|jdate('Y-m-d') }}

2. As a service

Not recommanded, Maybe neccessary in some situations though., (*8)

Example:, (*9)

$jDate = $serviceContainer->get('symfony_persia.jdate');

Contributors:

License

Symfony JalaliDate Bundle was created by MohammadHossein Heydari and released under the MIT License., (*10)

Copyright (C) 2015 MohammadHossein Heydari, (*11)

jDateTime was created by Sallar Kaboli and released under the MIT License., (*12)

Copyright (C) 2015 Sallar Kaboli
Part of Phoenix Framework (p5x.org) by Phoenix Alternatvie, (*13)

Original Jalali to Gregorian (and vice versa) convertor:
Copyright (C) 2000 Roozbeh Pournader and Mohammad Toossi, (*14)

The MIT License (MIT)

Copyright (C) 2015      MohammadHossein Heydari
Copyright (C) 2003-2015 Sallar Kaboli

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

1- The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

2- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Resources

The Versions

29/08 2017

dev-master

9999999-dev http://sallar.me/projects/jdatetime/

Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

symfony time datetime jalali persian jalalidate farsi shamsi jdatetime