PHPackages                             nitishrajuprety/nepalidateconverter - 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. nitishrajuprety/nepalidateconverter

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

nitishrajuprety/nepalidateconverter
===================================

Converts Gregorian date to Bikram Samvat date and vice versa.

1.0.0(8y ago)0511MITPHPPHP &gt;=5.5

Since Feb 1Pushed 8y agoCompare

[ Source](https://github.com/nitishrajuprety/nepalidateconverter)[ Packagist](https://packagist.org/packages/nitishrajuprety/nepalidateconverter)[ RSS](/packages/nitishrajuprety-nepalidateconverter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Nepali Date Converter
---------------------

[](#nepali-date-converter)

Converts Gregorian date to Bikram Samvat date and vice versa.

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

[](#installation)

`composer require nitishrajuprety/nepalidateconverter`

Usage
-----

[](#usage)

**Gregorian to Bikram Samvat**

`$nepaliDateConverter = new NepaliDateConverter(lang);`

`$date = $nepaliDateConverter->toNepali(yyyy, mm, dd);`

*or*

`$date = toNepali(yyyy, mm, dd, lang);`

Returns an array with converted values.

**Bikram Samvat to Gregorian**

`$nepaliDateConverter = new NepaliDateConverter(lang);`

`$date = $nepaliDateConverter->toEnglish(yyyy, mm, dd);`

*or*

`$date = toEnglish(yyyy, mm, dd, lang);`

If no argument is given for *lang* then the values are returned in english. Possible values are *'ne'* for Nepali or *'en'* for English. All passed arguments must be in English.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

3022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fdaa50e1914a20c90474d755557b97ac1f42bedcb0e43535b23073a7819b73d?d=identicon)[nitishrajuprety](/maintainers/nitishrajuprety)

---

Top Contributors

[![nitishrajuprety](https://avatars.githubusercontent.com/u/21262348?v=4)](https://github.com/nitishrajuprety "nitishrajuprety (5 commits)")

### Embed Badge

![Health badge](/badges/nitishrajuprety-nepalidateconverter/health.svg)

```
[![Health](https://phpackages.com/badges/nitishrajuprety-nepalidateconverter/health.svg)](https://phpackages.com/packages/nitishrajuprety-nepalidateconverter)
```

PHPackages © 2026

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