photon-series/nepali-calendar

Nepali Calendar Scrapping

dev-main 2022-11-12 20:44 UTC

This package is not auto-updated.

Last update: 2024-05-26 20:55:56 UTC


README

Nepali Calendar helps you to keep track of important dates, events, tithis etc in your own system.

Installation

composer require photon-series/nepali-calendar

Usage

Publish everything it finds, this includes configs, views, migrations, and more.

php artisan vendor:publish

Provider: Icts\Nepalicalander\NepaliCalanderServiceProvider .................................................

To sync database with hamro patro detes, events, holidays and more.

php artisan calendar

OR

use Illuminate\Support\Facades\Artisan;
Artisan::call("calendar");

Initialize Date Converter

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');

Contributing

Thank you for considering! The contribution guide can be found in the Package Development.

Code of Conduct

In order to ensure that welcoming to all, please review and abide.

Security Vulnerabilities

If you discover a security vulnerability within package, please send an e-mail to ALOK CHAUDHARY via alokcdhy@gmail.com. All security vulnerabilities will be promptly addressed.