ernilambar / nepali-date
Nepali Date
Installs: 9 013
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 4
Open Issues: 1
Requires
- php: >=5.6
README
Nepali Date Converter and utilities.
Requirements
- PHP 5.6+.
- Composer for managing PHP dependencies.
Installation
Use Composer to install the package.
composer require ernilambar/nepali-date
Use this to include autoload file.
require_once __DIR__ . '/vendor/autoload.php';
Usage
Examples:
use Nilambar\NepaliDate\NepaliDate; $obj = new NepaliDate(); // Convert BS to AD. $date = $obj->convertBsToAd('2077', '1', '1'); // Convert AD to BS. $date = $obj->convertAdToBs('2020', '1', '1'); // Get Nepali date details by BS date. $date = $obj->getDetails('2077', '1', '1', 'bs'); // Get Nepali date details by AD date. $date = $obj->getDetails('2020', '1', '1', 'ad');
Copyright and License
This project is licensed under the MIT.
2021 © Nilambar Sharma.