Nepali DateNepali DateBikram Sambat Date Engine

PackagistInstallation & Setup

Installation and setup instructions for nepali date library in PHP applications using Composer.

The nepali date library is distributed as a standard Composer package on Packagist with zero external dependencies. It works seamlessly across modern PHP versions and integrates directly with Laravel, Symfony, WordPress, and standalone PHP projects.


Package Installation

composer require sghimire/nepali-date-library

Composer Configuration

Add the package dependency to your composer.json file manually if preferred:

{
  "require": {
    "sghimire/nepali-date-library": "^1.0"
  }
}

Then run composer update or composer install to download the package.


Autoloading

Include the Composer generated autoload script at the entry point of your PHP script:

<?php

require __DIR__ . '/vendor/autoload.php';

use NepaliDateLibrary\NepaliDate;

$date = new NepaliDate();
echo $date->format('YYYY-MM-DD');

Next Steps

Advertisement

On this page