bhaktaraz/ghantaghar

A simple API extension for Nepali DateTime.

dev-master 2024-06-16 03:24 UTC

This package is auto-updated.

Last update: 2025-03-16 04:57:23 UTC


README

A simple PHP API extension for Nepali DateTime. http://bhaktaraz.com.np

printf("अहिले को समय :: %s", Ghantaghar::now());

Installation

With Composer

$ composer require bhaktaraz/ghantaghar
{
    "require": {
        "bhaktaraz/ghantaghar": "dev-master"
    }
}
<?php
require 'vendor/autoload.php';

use Bhaktaraz\Ghantaghar\Ghantaghar;

printf("अहिले को समय :: %s", Ghantaghar::now());
### Without Composer

Why are you not using composer? Download Ghantaghar.php from the repo and save the file into your project path somewhere.

<?php
require 'path/to/Ghantaghar.php';

use Bhaktaraz\Ghantaghar\Ghantaghar;

printf("अहिले को समय :: %s", Ghantaghar::now());