Skip to content

shankhadevpadam/laravelbsdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Laravel Nepali Date.

Latest Version Total Downloads StyleCI License

A laravel date package which convert AD to BS and viceversa.

#Installation

  1. 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"
  1. Open your config/app.php and add the following to the providers array:
Shankhadev\Bsdate\BsdateServiceProvider::class,
  1. In the same config/app.php and add the following to the aliases 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] => ७
)

About

A laravel date package which convert AD to BS and viceversa.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages