Download the PHP package openpsa/ranger without Composer
On this page you can find all versions of the php package openpsa/ranger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openpsa/ranger
More information about openpsa/ranger
Files in openpsa/ranger
Download openpsa/ranger
More information about openpsa/ranger
Files in openpsa/ranger
Vendor openpsa
Package ranger
Short Description Formatter for date and time ranges with i18n support
License MIT
Package ranger
Short Description Formatter for date and time ranges with i18n support
License MIT
Keywords time rangedate range
Please rate this library. Is it a good library?
Informations about the package ranger
Ranger
Ranger is a formatter for date and time ranges, based (somewhat loosely) on Adam Shaw's formatRange
algorithm in fullCalendar.
Some Examples
Usage
To use Ranger in any other locale than "en"
, you will need to have the php-intl
extension installed.
Instantiate ranger with the name of your locale as the parameter. You can also pass null
to use the ini.default_locale
setting. Afterwards, you can call format()
with two date parameters. Accepted types are
DateTime
objects- strings (any format that
DateTime
can read) - Unix timestamps
null
(which means current date).
Output Customization
All versions of ranger with dependencies
PHP Build Version
Package Version
The package openpsa/ranger contains the following files
Loading the files please wait ....