Download the PHP package dipesh/calendar without Composer
On this page you can find all versions of the php package dipesh/calendar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dipesh/calendar
More information about dipesh/calendar
Files in dipesh/calendar
Package calendar
Short Description A PHP package that builds a complete Nepali calendar effortlessly, serving as a wrapper around the dipesh/nepali-date package. It allows users to generate and manipulate a full Nepali calendar, add events, and perform date calculations without any prior knowledge of the underlying system.
License MIT
Informations about the package calendar
Nepali Calendar
The Nepali Calendar is a comprehensive PHP package for generating and managing a Nepali calendar. It acts as a wrapper for the dipesh/nepali-date
package, enabling users to easily create a full Nepali calendar and manage events within it, all without needing extensive knowledge of the Nepali date system.
Features
- Comprehensive Nepali Calendar: Generate and work with a complete Nepali calendar.
- Event Management: Add, update, and manage events for each day.
- Dynamic Event Handling: Add events using callables or arrays, allowing integration with databases or other sources.
- Intuitive Navigation: Simple methods for navigating months and years.
Installation
To install the Nepali Calendar package, use Composer:
Usage
Basic Setup
Create a new calendar instance. By default, it initializes to the current date, but you can provide a specific date if needed.
Setting Events
Add events for specific days using the setEvent
method. You can also set multiple events at once with the setEvents
method.
Adding a Single Event
Adding Multiple Events
You can use an associative array of events or a callable function for dynamic event setting.
Navigating the Calendar
Easily move through the months and years:
Using Callbacks for Dynamic Event Fetching
Define a callable function to fetch and set events dynamically, such as from a database.
Example Project
To help you get started with the Nepali Calendar package, an example project is available for you to download and inspect. This project demonstrates how to implement the calendar with event management features effectively.
Screenshot of Example Project
Download Example Project
You can download the example project from the following link:
Contributing
Contributions are welcome! If you have suggestions, improvements, or bug fixes, please submit a pull request or open an issue.
License
This package is licensed under the MIT License. For more details, see the LICENSE file.