Download the PHP package mokhosh/jarbon without Composer
On this page you can find all versions of the php package mokhosh/jarbon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mokhosh/jarbon
More information about mokhosh/jarbon
Files in mokhosh/jarbon
Download mokhosh/jarbon
More information about mokhosh/jarbon
Files in mokhosh/jarbon
Vendor mokhosh
Package jarbon
Short Description A Jalali wrapper for Carbon to use with Laravel.
License MIT
Package jarbon
Short Description A Jalali wrapper for Carbon to use with Laravel.
License MIT
Please rate this library. Is it a good library?
Informations about the package jarbon
Jarbon (Jalali Carbon)
A Jalali wrapper for Carbon to use with Laravel.
The idea is to add Jalali functionality to Carbon instances without introducing breaking changes. Also I'm not in a hurry to exhaust all Carbon methods and features here. Just implementing what I need in my projects for now.
Installation
Via composer
Usage
You can simply convert any Carbon
instance to Jalali like this:
If you wanna use the format helper methods you can do this too, but it's optional:
Now you can output the Jalali date like this:
Publish the config file:
Help yourself:
TODO
- Add jarbon() helper
- Fluent methods to override config on a single instance
- Cache a Jalali date inside the instance and track Carbon modification to regenerate it on the fly
- Integrate with a client side Jalali datepicker for Jalali datetime inputs in forms
- Helpers to play with Jalali and Gregorian dates
- Unit tests?
- what else?
All versions of jarbon with dependencies
PHP Build Version
Package Version
Requires
nesbot/carbon Version
^2.0
The package mokhosh/jarbon contains the following files
Loading the files please wait ....