Download the PHP package dipesh/nepali-date without Composer

On this page you can find all versions of the php package dipesh/nepali-date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nepali-date

Nepali Date

The Nepali Date package is designed for working with the Nepali calendar. It provides functionality for converting dates between the English (AD) and Nepali (BS) calendars, along with a wide range of methods for handling and manipulating Nepali dates. This comprehensive tool facilitates seamless integration and operations within the Nepali calendar system.

Installation

To install the package, use Composer:

Uses

Creating Instances

Date Conversion

Date Component Retrieval Based on the Language Configuration

Date Manipulation and Comparison Methods

Formatting

Supported format characters: Y, m, M, F, d, w, D, l, g

Format Character Description Example Output
Y Year (4-digit format) 2078
m Month (Numeric, zero-padded, 01-12) 01 for Baisakh, 12 for Chait
M Month (Short textual representation) Bai for Baisakh, Dec for Chai
F Month (Full textual representation) Baisakh, Jeth
d Day of the month (Numeric, zero-padded, 01-31) 01 for the 1st, 31 for the 31st
w Day of the week (Numeric, 1-7) 1 for Aaitabar, 7 for Sanibar
D Day of the week (Short textual representation) Aaita for Aaitabar, Budh for Budhabar
l Day of the week (Full textual representation) Aaitabar, Sombar
g This is not for english(AD) format Gate or गते

Recommended Package for Full Calendar System

For developers looking to create a comprehensive Calendar system, we recommend the dipesh/calendar package. This package provides an easy-to-use interface for managing a full Nepali calendar, allowing you to seamlessly add events, navigate through months and years, and much more.

To install the package, run:


Extending and Customizing the Nepali Date Package

This package is designed for great extensibility, allowing you to customize key components to fit your specific needs. The package is built around three main concepts:

  1. DateProcessor: Handles all date-related calculations and logic.
  2. Language: Manages language-specific aspects, such as number formatting and month names.
  3. Formatter: Controls how dates are formatted and displayed.

You can extend or replace these components with your own implementations, enabling you to modify the core logic without touching the existing codebase. Below are examples of how to achieve this customization:

Example: Extending the Nepali Date Class

Example: Creating a Custom DateProcessor

Example: Creating a Custom Formatter

Example: Creating a Custom Language


License

Nepali Date is open-sourced package licensed under the MIT license.****


All versions of nepali-date with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dipesh/nepali-date contains the following files

Loading the files please wait ....