shankhadev / bsdate
A simple package that convert AD to BS and viceversa.
Installs: 5 416
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 6
Open Issues: 0
Requires
- php: >=5.5.9
This package is auto-updated.
Last update: 2024-12-26 14:58:50 UTC
README
A laravel date package which convert AD to BS and viceversa.
#Installation
- In order to install Laravel 5 Laravelbsdate, just add the following to your composer.json in require. Then run composer update:
"shankhadev/bsdate": "master-dev"
- Open your
config/app.php
and add the following to theproviders
array:
Shankhadev\Bsdate\BsdateServiceProvider::class,
- In the same
config/app.php
and add the following to thealiases
array:
'Bsdate' => Shankhadev\Bsdate\BsdateFacade::class,
Usage
Bsdate::eng_to_nep(2016,12,31); //For converting AD TO BS Bsdate::nep_to_eng(2073,09,16); //For converting BS TO AD // output Array ( [year] => २०७३ [month] => ९ [date] => १६ [day] => शनिबार [nmonth] => पुष [num_day] => ७ )