fivedots/nepalicalendar
最新稳定版本:v1.0
Composer 安装命令:
composer require fivedots/nepalicalendar
包简介
Composer ready nepali calendar
README 文档
README
This repository contains the PHP code that can be used to convert date from Nepali-English and vice versa.
This is basically a rewrite and code structuring of the Nepali_Calendar.php class from Aman Tuladhar Aman Github Link.
I basically made it composer ready and added few tests cases. I have also added the code coverage so anyone trying to make use of this library may find it helpful.
Year Supported
Range: 1944-2022 (AD)
How to install it?
Add the below code on require section of your composer.json file.
"require": {
"fivedots/nepalicalendar":"*"
}
After adding the above require statement, run composer update.
How to use it?
Refer to example.php file
<?php
require __DIR__.'/vendor/autoload.php';
$calendar = new Fivedots\NepaliCalendar\Calendar();
// Get English to Nepali converted date
print_r($calendar->englishToNepali(2015,1,1));
// Get Nepali to English converted date
print_r($calendar->nepaliToEnglish(2071,9,17));
Hope this helps someone.
统计信息
- 总下载量: 1.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-31