Download the PHP package pouyasoft_ir/simple-date-bundle without Composer
On this page you can find all versions of the php package pouyasoft_ir/simple-date-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pouyasoft_ir/simple-date-bundle
More information about pouyasoft_ir/simple-date-bundle
Files in pouyasoft_ir/simple-date-bundle
Download pouyasoft_ir/simple-date-bundle
More information about pouyasoft_ir/simple-date-bundle
Files in pouyasoft_ir/simple-date-bundle
Vendor pouyasoft_ir
Package simple-date-bundle
Short Description A bundle for persian date in Symfony2
License MIT
Package simple-date-bundle
Short Description A bundle for persian date in Symfony2
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-date-bundle
pouyasoft_ir/simple-date-bundle
A bundle for persian date in Symfony2
Install
- Install via Composer:
Service
Service Name: pouya_soft.j_sdate_service
Functions:
- georgianToPersian:
Convert Georgian calendar (DateTime) To Persian (String).
Parameters:- georgian: DateTime (default:
null
) - format: string (default:
yyyy/MM/dd
) View Intl Format - locale: string (default:
fa
) (e.g. fa, fa_IR, en, en_US, en_UK, ...) - calendar: string (default:
persian
) (e.g. gregorian, persian, islamic, ...) - latinizeDigit: bool (default:
false
) Convert Persian numbers to Latin Numbers.
- georgian: DateTime (default:
- persianToGeorgian:
Convert Persian calendar (String) To Georgian (DateTime).
Parameters:- persian: string
- format: string (default:
yyyy/MM/dd
) View Intl Format - locale: string (default:
fa
) (e.g. fa, fa_IR, en, en_US, en_UK, ...) - calendar: string (default:
persian
) (e.g. gregorian, persian, islamic, ...)
- intlDateTimeInstance:
Return new Instance of IntlDateTime. Visit Blog of Ali Farhadi
Sample:
Twig
Functions:
- gpDate:
Convert Georgian calendar (DateTime) To Persian (String).
Parameters:- georgian: DateTime (default:
null
) - format: string (default:
yyyy/MM/dd
) View Intl Format - locale: string (default:
fa
) (e.g. fa, fa_IR, en, en_US, en_UK, ...) - calendar: string (default:
persian
) (e.g. gregorian, persian, islamic, ...) - latinizeDigit: bool (default:
false
) Convert Persian numbers to Latin Numbers.
- georgian: DateTime (default:
- pgDate:
Convert Persian calendar (String) To Georgian (DateTime).
Parameters:- persian: string
- format: string (default:
yyyy/MM/dd
) View Intl Format - locale: string (default:
fa
) (e.g. fa, fa_IR, en, en_US, en_UK, ...) - calendar: string (default:
persian
) (e.g. gregorian, persian, islamic, ...)
Sample:
Form
Type Name: PouyaSoftSDateType
Parameters:
- serverFormat: string (default:
yyyy/MM/dd
) View Intl Format - clientFormat: string (default:
yy/m/d
) View DatePicker Format - attr: array
You can add other DatePicker options to this param, but must change uppercase letters to lower and add dash before it. (see Samples)
note: Result of serverFormat and clientFormat, must be the same.
Sample:
Date Picker
Requirements:
- Bootstrap
- Jquery
Add this lines to head tag in base.html.twig
file:
Add this lines to end of body tag in base.html.twig
file:
Add this lines to config/packages/twig.yaml
file:
References:
All versions of simple-date-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
The package pouyasoft_ir/simple-date-bundle contains the following files
Loading the files please wait ....