Search by

sghimire / nepali-date-library

SandipGhimire

Fast, zero-dependency Nepali Date (Bikram Sambat / BS) converter and calendar library for PHP. Bidirectional BS to AD / AD to BS conversion, fiscal year, date arithmetic, and Devanagari formatting.

1.0.1 2026-08-10 10:40 UTC

This package is auto-updated.

Last update: 2026-10-17 16:44:37 UTC


README

Latest Version on Packagist Total Downloads PHP Version Documentation Date Converter License: MIT

A modern, zero-dependency PHP library and Nepali Date Converter for working with Nepali (Bikram Sambat / BS) dates between 1976/01/01 and 2100/12/30 BS.

📖 Full Documentation & Live Tools

All guides, complete API references, Devanagari format tokens, fiscal year helpers, and interactive playground are hosted on our official documentation portal:

👉 https://nepali-pkg.date/docs/php
🔄 Try the Live Date Converter

📦 Installation

composer require sghimire/nepali-date-library

🚀 Quick Example

use NepaliDateLibrary\NepaliDate;

$today = new NepaliDate();
echo $today->format("YYYY-MM-DD"); // "2081-07-01"

Note: For complete API methods, standalone conversion (ADtoBS / BStoAD), date arithmetic, and fiscal year calculations, visit https://nepali-pkg.date/docs/php.

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide or visit our Online Contribution Guide.

📄 License

MIT © Sandip Ghimire
Made with ❤️ by Sandip Ghimire.