safal/engtonepdateconverter

There is no license information available for the latest version (1.0) of this package.

A package that convert english date to nepali date

1.0 2019-01-13 05:57 UTC

README

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 : २०७५/९/२९