定制 s1k3/bangla-date 二次开发

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

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

s1k3/bangla-date

最新稳定版本:1.07

Composer 安装命令:

composer require s1k3/bangla-date

包简介

Laravel Library for converting English date to corresponding Bangla Date

README 文档

README

#####Laravel Library for converting English Date to Bangla

For Installation follow the following steps:

  1. composer require s1k3/bangla-date
  2. (You may skip this step when using Laravel >= 5.5)). Navigate to the path/to/config/app.php and add to the providers array
'providers' => [
       S1K3\Bangla\Date\BanglaDateServiceProvider::class
]
  1. Execute the following command from the command-line to publish the package's config and the default template to start generating awesome code.
php artisan vendor:publish --provider="S1K3\Bangla\Date\BanglaDateServiceProvider"

Basic Usage:

bangla_date(time()) // OUTPUT ১২ চৈত্র ১৪২৫
bangla_date(time(),"en") // OUTPUT ২৬ মার্চ ২০১৯
bangla_date(time(),"bn") // OUTPUT ১২ চৈত্র ১৪২৫
bangla_date(time(),"bn","d-m-y") // OUTPUT  ১২-চৈত্র-১৪২৫

Configuration:

return [
    'hour' => 6,
    'language' => 'bn',
    'format' => 'd m, y'
];
property Description
format Date formatting.
language 'en' for english format. 'bn' for bangla format
hour If 0, then date will change instantly. If it's 6, date will change at 6'0 clock at the morning. Default is 6'0 clock at the morning

Supported values for format.

property Description
m Month
d Day
y Year

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固