Download the PHP package ashbin/nepali-date without Composer

On this page you can find all versions of the php package ashbin/nepali-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nepali-date

Laravel Nepali Date Converter

A lightweight, blazing-fast, and optimized Laravel package to convert Nepali Date (Bikram Sambat - BS) to English Date (Anno Domini - AD) and vice versa.

Instead of relying on complex and often inaccurate mathematical formulas, this package uses a highly accurate database-driven lookup approach based on the official Nepali calendar.

🚀 Features


📦 Installation

You can install the package via Composer into any Laravel project:

⚙️ Setup Instructions

After installing the package, you need to set up the database table and populate it with the official calendar data.

Run this commands in your terminal:

This will create a lightweight nepali_calendars table in your database and populates the accurate BS to AD mapped data.


🛠️ Usage

This package is designed for maximum Developer Experience (DX).

You can use it in two ways:


1️⃣ Method 1: Using Global Helper Functions

You can use these helper functions anywhere in your Laravel app without importing any classes.

BS to AD (Nepali to English)

Output:

AD to BS (English to Nepali)

Output:

Example in Blade Templates


2️⃣ Method 2: Using the Facade

If you prefer class-based static calls, you can use the NepDate facade.

The facade is auto-discovered, so you don't need to register it manually.

Example

BS to AD using Facade

Output:

AD to BS using Facade

Output:


📅 Supported Date Format

The package uses the following date format:

BS Date

AD Date


🔄 Conversion Examples

BS Date AD Date
2083-04-25 2026-08-10

BS → AD

Output:

AD → BS

Output:


📄 License

The MIT License (MIT). Please see the License file for more information.


All versions of nepali-date with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
nesbot/carbon Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ashbin/nepali-date contains the following files

Loading the files please wait ...