Download the PHP package nisshan/nepali-calendar without Composer
On this page you can find all versions of the php package nisshan/nepali-calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nisshan/nepali-calendar
More information about nisshan/nepali-calendar
Files in nisshan/nepali-calendar
Package nepali-calendar
Short Description It converts date from english to nepali and vice-versa
License MIT
Homepage https://github.com/nisshan/nepali-calendar
Informations about the package nepali-calendar
It converts date from english to nepali and vice-versa
This is a laravel package that converts English date to Nepali and vice versa.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
to convert to Nepali Date from English and
to convert to English from Nepali date. The date Format parameter is optional which format the date if not passed will be used from configuration file. The above two implements shows how you can pass the english date to the function with or without a separator that changes helps in separating the date using Helper file or you can also convert the date as
It will give same output as helper function.
Format that you can use
currently, I have used ['Y','M','D','d','m','y'] as date formatter you can use any combination of the following to output formatted date.
Thank you note
If you are here by any chance and using my package I would like to thank you and would love to accept PR on improvement of code or new features. Thank you.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- nisshan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of nepali-calendar with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^8.73