A laravel package that converts english date to nepali date
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
src
LICENSE
README.md
composer.json

README.md

A laravel package that converts english date to nepali date.

Instructions:

1) Run composer require safal/engtonepdateconverter

2) Or add "safal/engtonepdateconverter": "^1.0" in composer.json and run composer update

For Laravel 5.4 and lower, add the following line to your config/app.php:

safal\engtonepdateconverter\NepaliDateServiceProvider::class,

3) For Laravel 5.5 and greater, the package will auto register the provider for you.

Usage

To convert english date to nepali date,

use the NepaliDate Facade as:

NepaliDate::convertToNepaliDate(2019,01,13);

Output : २०७५/९/२९