Skip to content

Instantly share code, notes, and snippets.

View leonardola's full-sized avatar

Leonardo Lopes de Albuquerque leonardola

  • Automattic
  • Brazil
  • 05:56 (UTC -03:00)
View GitHub Profile
@leonardola
leonardola / Calendar.php
Created October 17, 2020 22:32
How to create a calendar in php
<?php
class Calendar
{
private $month;
private $date;
private $events = [];
public function __construct($date)
{
$this->date = new \DateTime($date);