PHPackages                             nisshan/nepali-calendar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nisshan/nepali-calendar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nisshan/nepali-calendar
=======================

It converts date from english to nepali and vice-versa

1.0.0(4y ago)1123[1 PRs](https://github.com/Nisshan/nepali-calendar/pulls)MITPHPPHP ^8.0

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Nisshan/nepali-calendar)[ Packagist](https://packagist.org/packages/nisshan/nepali-calendar)[ Docs](https://github.com/nisshan/nepali-calendar)[ GitHub Sponsors](https://github.com/Nisshan)[ RSS](/packages/nisshan-nepali-calendar/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (12)Versions (3)Used By (0)

It converts date from english to nepali and vice-versa
======================================================

[](#it-converts-date-from-english-to-nepali-and-vice-versa)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9603ee475407114ae6b61e8f3181d877ed2d1e7a3809f445820f5c71ead3eaf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e69737368616e2f6e6570616c692d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nisshan/nepali-calendar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/32c02ec775c0d12fd0b58e4dad64ba4eb7b3aa77a718b2bbf25e2b0e8141cb85/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e69737368616e2f6e6570616c692d63616c656e6461722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/nisshan/nepali-calendar/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8077daba3ddcc6ed8687b8bf0081f36c3214f37eef1bc12401418872319f848c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e69737368616e2f6e6570616c692d63616c656e6461722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/nisshan/nepali-calendar/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c953060ecb414c59c82b1db9221e1b02dc84cb1b3934ce10d236f85beb064b36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69737368616e2f6e6570616c692d63616c656e6461722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nisshan/nepali-calendar)

This is a laravel package that converts English date to Nepali and vice versa.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require nisshan/nepali-calendar
```

You can publish the config file with:

```
php artisan vendor:publish --tag="nepali-calendar-config"
```

This is the contents of the published config file:

```
return [
    'date-format' => 'Y m, d is default format',

    'nepali-dates' => 'array of nepali dates'
];
```

Usage
-----

[](#usage)

```
toNepaliDate('2022-1-17'); => '2078 10, 03'

toNepaliDate('2022-1-17', 'Y, m d, D'); => '2078, 10 03, Monday'
```

to convert to Nepali Date from English and

```
toEnglishDate('2078-10-03'); => '2022 1, 17'

toEnglishDate('2078-10-03', 'Y, m d, D'); => '2022, 1 17, Monday'
```

to convert to English from Nepali date. The date Format parameter is optional which format the date if not passed will be used from configuration file. The above two implements shows how you can pass the english date to the function with or without a separator that changes helps in separating the date using Helper file or you can also convert the date as

```
use Nisshan\NepaliCalendar\DateConversion;

$nepaliDate = DateConversion::convert('2022-1-17')->toNepali();
$nepaliDateWithFormat = DateConversion::convert('2022-1-17','Y, m d, D')->toNepali();

$englishDate = DateConversion::convert('2078-10-03')->toNepali();
$englishWithFormat = DateConversion::convert('2078-10-03','Y, m d, D')->toNepali();
```

It will give same output as helper function.

Format that you can use
-----------------------

[](#format-that-you-can-use)

currently, I have used \['Y','M','D','d','m','y'\] as date formatter you can use any combination of the following to output formatted date.

```
  'Y','y'  => 'Year',
  'M'      => 'Month Name',
  'm'      => 'month'
  'D'      => 'Name of Week Day',
  'd'      => 'date',
```

Thank you note
--------------

[](#thank-you-note)

If you are here by any chance and using my package I would like to thank you and would love to accept PR on improvement of code or new features. Thank you.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [nisshan](https://github.com/Nisshan)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1622d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31005292?v=4)[Nishan](/maintainers/nisshan)[@Nisshan](https://github.com/Nisshan)

---

Top Contributors

[![Nisshan](https://avatars.githubusercontent.com/u/31005292?v=4)](https://github.com/Nisshan "Nisshan (34 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

english-to-nepali-datelaravel-nepali-calendarnepali-calendarlaravelNepali CalendarNisshan

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/nisshan-nepali-calendar/health.svg)

```
[![Health](https://phpackages.com/badges/nisshan-nepali-calendar/health.svg)](https://phpackages.com/packages/nisshan-nepali-calendar)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
