Download the PHP package anuzpandey/laravel-nepali-date without Composer
On this page you can find all versions of the php package anuzpandey/laravel-nepali-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anuzpandey/laravel-nepali-date
More information about anuzpandey/laravel-nepali-date
Files in anuzpandey/laravel-nepali-date
Package laravel-nepali-date
Short Description A Laravel Package to convert English Date (A.D.) to Nepali Date (B.S.) and vice-versa.
License MIT
Homepage https://laravel-nepali-date.anuzpandey.com
Informations about the package laravel-nepali-date
A Laravel Package to convert Dates from BS and AD.
LaravelNepaliDate is a Laravel package that simplifies the conversion of dates between the Gregorian (English) and Nepali (Bikram Sambat) calendars. This package is a handy tool for projects that require handling dates in both English and Nepali formats, such as websites and applications targeting users in Nepal.
Installation
You can install the package via composer:
Optionally, you can publish the config file with:
Usage
Format Specifiers
The following format specifiers are supported for formatting dates:
Y
- Year in four digitsy
- Year in two digitsm
- Month in two digits with leading zero (01-12/०१-१२)n
- Month in one or two digits without leading zero (1-12/१-१२)M
- Month in three letters (Jan-Dec)F
- Month in full name (January-December/बैशाख-चैत्र)d
- Day in two digits with leading zero (01-31/०१-३२)j
- Day in one or two digits without leading zero (1-31/१-३२)D
- Day in three letters (Sun-Sat/आइत-शनि)l
- Day in full name (Sunday-Saturday/आइतबार-शनिबार)S
- Day in two letters (st, nd, rd, th)
Extending Carbon with NepaliDateMixin
Note: This feature has been deprecated as Carbon doesn't support the months having more than 31 days. This feature has been removed from version 2.0.0.
Helper function
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
- AnuzPandey
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-nepali-date with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0