PHPackages                             rafapaulino/calendar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rafapaulino/calendar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rafapaulino/calendar
====================

PHP Package for Calendar

1.2.2(4mo ago)08MITPHPPHP ^8.3 || ^8.4

Since May 26Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/rafapaulino/PHP-Calendar)[ Packagist](https://packagist.org/packages/rafapaulino/calendar)[ RSS](/packages/rafapaulino-calendar/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (11)Used By (0)

PHP Calendar
============

[](#php-calendar)

 [🡺 Visit the Documentation 🡸](https://php-calendar.docsforge.com/)

[![Latest Stable Version](https://camo.githubusercontent.com/270f5b9341b3fcb7dc92462ecc3e099b04ad2b6d7004688dd979b3220afee553/687474703a2f2f706f7365722e707567782e6f72672f726166617061756c696e6f2f63616c656e6461722f76)](https://packagist.org/packages/rafapaulino/calendar)[![Total Downloads](https://camo.githubusercontent.com/99bb243f097cd7345c5c70223bf085ef479a8fb3c0f1d9e2ec4cc88c8662cbbb/687474703a2f2f706f7365722e707567782e6f72672f726166617061756c696e6f2f63616c656e6461722f646f776e6c6f616473)](https://packagist.org/packages/rafapaulino/calendar)[![Latest Unstable Version](https://camo.githubusercontent.com/75aae7ba659816e2910d31b2f99b5b767cc7f0fbba44aa6c85a75a20fde3f349/687474703a2f2f706f7365722e707567782e6f72672f726166617061756c696e6f2f63616c656e6461722f762f756e737461626c65)](https://packagist.org/packages/rafapaulino/calendar)[![License](https://camo.githubusercontent.com/e0fbeb8ab1f4fee8271704e04f3880171f1e4391a5d460b9f898b4dc7c127be8/687474703a2f2f706f7365722e707567782e6f72672f726166617061756c696e6f2f63616c656e6461722f6c6963656e7365)](https://packagist.org/packages/rafapaulino/calendar)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SN4SZRSL5HPZU)

---

What is the package and what does it do?
========================================

[](#what-is-the-package-and-what-does-it-do)

PHP Calendar is a php package that generates a calendar from the month and year parameters, besides this functionality it is possible to add events to the calendar days.

---

Get Started
===========

[](#get-started)

1. Requirements
---------------

[](#1-requirements)

- [PHP 8.2+](https://www.php.net/releases/8.2/en.php)
- [Composer](https://getcomposer.org/)

2. Installation
---------------

[](#2-installation)

- composer require rafapaulino/calendar

3. Documentation
----------------

[](#3-documentation)

[You can access the documentation for this package by clicking here](https://php-calendar.docsforge.com/)

4. Code Examples
----------------

[](#4-code-examples)

### How to create a simple calendar:

[](#how-to-create-a-simple-calendar)

This package creates a calendar using PHP, the callbacks are in string and array format.

The parameters for generating the calendar are:

- `month` Month number 1 to 12.
- `year` Year of calendar.
- `first day of week` Day of the week the calendar starts.
- `full days` Whether or not to display the 42 days on the calendar.

See the examples folder for using the class easily.

```

```

### Adding Events to Your Calendar:

[](#adding-events-to-your-calendar)

```
