PHPackages                             krishnahimself/laravel-ad-to-bs-converter - 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. krishnahimself/laravel-ad-to-bs-converter

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

krishnahimself/laravel-ad-to-bs-converter
=========================================

Convert English date to Nepali date.

1.0.1(4y ago)73.3k↓16.7%4[1 issues](https://github.com/krishnahimself/laravel-ad-to-bs-converter/issues)MITPHPPHP ^7.4|^8.0

Since Oct 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/krishnahimself/laravel-ad-to-bs-converter)[ Packagist](https://packagist.org/packages/krishnahimself/laravel-ad-to-bs-converter)[ Docs](https://github.com/krishnahimself/laravel-ad-to-bs-converter)[ RSS](/packages/krishnahimself-laravel-ad-to-bs-converter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

[![Laravel AD to BS Converter](https://camo.githubusercontent.com/666324b760375a55046dbe683aab961b969931b5947c29e845cbb978ffb16012/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304144253230746f2532304253253230436f6e7665727465722e706e673f7468656d653d6c69676874267061636b6167654e616d653d6b726973686e6168696d73656c662532466c61726176656c2d61642d746f2d62732d636f6e766572746572267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d2b436f6e766572742b456e676c6973682b646174652b746f2b4e6570616c692b646174652e2b266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d63616c63756c61746f72)](https://camo.githubusercontent.com/666324b760375a55046dbe683aab961b969931b5947c29e845cbb978ffb16012/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304144253230746f2532304253253230436f6e7665727465722e706e673f7468656d653d6c69676874267061636b6167654e616d653d6b726973686e6168696d73656c662532466c61726176656c2d61642d746f2d62732d636f6e766572746572267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d2b436f6e766572742b456e676c6973682b646174652b746f2b4e6570616c692b646174652e2b266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d63616c63756c61746f72)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bf1d0bb9914a371c9f916cf6b0ab9d9c5390d9234109e726ccfd9f469b777237/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b726973686e6168696d73656c662f6c61726176656c2d61642d746f2d62732d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krishnahimself/laravel-ad-to-bs-converter)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ee940880c640a4e8f1d35f34847a3e7e472ed80310b44ae960d33fe285922cec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b726973686e6168696d73656c662f6c61726176656c2d61642d746f2d62732d636f6e7665727465722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/krishnahimself/laravel-ad-to-bs-converter/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/3932c024ae3081f188abd5067f08d602746de201437ce0164df2c57741a03833/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b726973686e6168696d73656c662f6c61726176656c2d61642d746f2d62732d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/krishnahimself/laravel-ad-to-bs-converter)

This package can convert english date to nepali date.

Here is one example of what you can do:

Convert english date to nepali date. English date format to pass is (YYYY, M, D)

```
DateConverter::fromEnglishDate(2020, 10, 4)->toFormattedNepaliDate();
//Output: १८ असोज २०७७, आइतवार
```

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

[](#installation)

You can install the package via composer:

```
composer require krishnahimself/laravel-ad-to-bs-converter
```

Usage
-----

[](#usage)

```
use Krishnahimself\DateConverter\DateConverter;

$nepaliDate = DateConverter::fromEnglishDate(2020, 10, 4)->toNepaliDate();
//Output: 2077-6-18

$nepaliDate = DateConverter::fromEnglishDate(2020, 10, 4)->toFormattedNepaliDate();
//Output: १८ असोज २०७७, आइतवार

$nepaliDate = DateConverter::fromEnglishDate(2020, 10, 4)->toNepaliDateArray();
//Output:
[
    'year' => 2077,
    'month' => 6,
    'day' => 18,
    'day_of_week' => 1,
]

$nepaliDate = DateConverter::fromEnglishDate(2020, 10, 4)->toFormattedNepaliDateArray();
//Output:
[
    'year' => '२०७७',
    'month' => 'असोज',
    'day' => '१८',
    'day_of_week' => 'आइतवार',
]
```

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)

- [Krishna Bhandari](https://github.com/krishnahimself)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~378 days

Total

2

Last Release

1668d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.0.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1042c8edf940b417be5d38f813ab5b3ca9579934eba61bbed58164f1c6c5c94?d=identicon)[krishnahimself](/maintainers/krishnahimself)

---

Top Contributors

[![krishnahimself](https://avatars.githubusercontent.com/u/19906424?v=4)](https://github.com/krishnahimself "krishnahimself (31 commits)")

---

Tags

krishnahimselflaravel-ad-to-bs-converter

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/krishnahimself-laravel-ad-to-bs-converter/health.svg)

```
[![Health](https://phpackages.com/badges/krishnahimself-laravel-ad-to-bs-converter/health.svg)](https://phpackages.com/packages/krishnahimself-laravel-ad-to-bs-converter)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[tonysm/rich-text-laravel

Integrates Trix content with Laravel

46577.8k1](/packages/tonysm-rich-text-laravel)[mauricius/laravel-htmx

Laravel helper library for Htmx

364101.1k1](/packages/mauricius-laravel-htmx)[illuminate/reflection

The Illuminate Reflection package.

361.6M3](/packages/illuminate-reflection)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

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