Installation & 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-libraryComposer 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
- Quick Start Guide: Learn core workflows and common patterns.
- NepaliDate Class Reference: Explore constructor signatures and instance creation.
Overview
Complete documentation and feature guide for the Nepali Date Library in PHP applications.
Quick Start
Practical guide and essential code examples to start working with Bikram Sambat dates in PHP.