1. Go to this page and download the library: Download snlbaral/nepali-date library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
snlbaral / nepali-date example snippets
use Snlbaral\NepaliDate\NepaliDate;
echo new NepaliDate();
//सोमबार, भदौ २८, २o७८
echo new NepaliDate("M d, l");
//भदौ २८, सोमबार
/**
* @param string $format Date Format (i.e. "Y-m-d" or "l, m") | Default = "l, M d, Y"
* @param boolean $convert convert number/digits to nepali numbers (i.e. १) | Default = true
* @return string Nepali Date.
*/
echo new NepaliDate("l, M d", false);
//सोमबार, भदौ 28
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.