PHPackages                             kmlpandey77/ndate - 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. kmlpandey77/ndate

ActiveLibrary

kmlpandey77/ndate
=================

Nepali date converter

0.1.4(5mo ago)33.3kMITPHPPHP ^8.0 || ^8.1 || ^8.2CI passing

Since Jan 1Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/kmlpandey77/ndate)[ Packagist](https://packagist.org/packages/kmlpandey77/ndate)[ RSS](/packages/kmlpandey77-ndate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (12)Used By (0)

Ndate (Nepali date converter)
=============================

[](#ndate-nepali-date-converter)

A PHP library for `AD to BS` and `BS to AD`

Install
-------

[](#install)

Run the following command from you terminal:

`composer require kmlpandey77/ndate`

Usage
-----

[](#usage)

### AD to BS

[](#ad-to-bs)

```
use Kmlpandey77\Ndate\Ndate;

# Example 01

$date_to_bs = Ndate::to_bs("2023-11-08");

echo $date_to_bs // OUTPUT: 2080-07-22
echo $date_to_bs->lang(Ndate::NP) // OUTPUT: २०८०-०७-२२

# Example 02

$date_to_bs = Ndate::to_bs("2023-11-08", 'd/m/Y');

echo $date_to_bs // OUTPUT: 22/07/2080
echo $date_to_bs->format('l, d M, Y') // Wednesday, 22 Kartik, 2080
echo $date_to_bs->format('l, d M, Y')->lang(Ndate::NP) // OUTPUT: बुधवार, २२ कार्तिक, २०८०
```

---

#### Available Date Format

[](#available-date-format)

FormatDescriptionExample`d`Day of the month, 2 digits with leading zeros`01` to `32``D`A textual representation of a day, three letters`Mon` for Monday`j`Day of the month without leading zeros`1` to `31``l`A full textual representation of the day of the week`Monday`, `Tuesday``m`Numeric representation of a month, with leading zeros`01` to `12``M`A full textual representation of a month`Baishak`, `Jestha``n`Numeric representation of a month, without leading zeros`1` to `12``Y`A full numeric representation of a year, 4 digits`2078`### BS to AD

[](#bs-to-ad)

```
use Kmlpandey77\Ndate\Ndate;

# Example 01

$date_to_ad = Ndate::to_ad("2080-07-22");

echo $date_to_ad // OUTPUT: 2023-11-08

# Example 02
$date_to_ad = Ndate::to_ad("2080-07-22", 'd/m/Y');

echo $date_to_ad // OUTPUT: 08/11/2023
```

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance75

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~99 days

Recently: every ~117 days

Total

8

Last Release

164d ago

PHP version history (4 changes)0.0.1PHP 8.\*

0.0.3PHP 8.2

0.1.1PHP ^8.0

0.1.3PHP ^8.0 || ^8.1 || ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/180b66b4647bc47172b86b02faaa43a38280faabc339c0d13fc8bcb90244794d?d=identicon)[kmlpandey77](/maintainers/kmlpandey77)

---

Top Contributors

[![kmlpandey77](https://avatars.githubusercontent.com/u/16485204?v=4)](https://github.com/kmlpandey77 "kmlpandey77 (14 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kmlpandey77-ndate/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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