定制 shankhadev/bsdate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shankhadev/bsdate

最新稳定版本:v1.0.0

Composer 安装命令:

composer require shankhadev/bsdate

包简介

A simple package that convert AD to BS and viceversa.

README 文档

README

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] => ७
)

统计信息

  • 总下载量: 6.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-31