{"repo":"benhall14/php-calendar","free":true,"listed":false,"github":"https://github.com/benhall14/php-calendar","clone":"git clone https://github.com/benhall14/php-calendar.git","description":"A simple PHP class to generate calendars. Easy to populate, the calendar shows events by passing in an array.","language":"PHP","stars":99,"topics":["php","calendar","calendars"],"license":"MIT","category":"productivity","readme_excerpt":"PHP Calendar A PHP class that makes generating calendars as easy as possible. You can use the addEvent() or addEvents() methods to mark events on the generated calendar. This is fully compatible with PHP 5 through to PHP 8.1+ Installation via Composer You can now install this class via composer. $ composer require benhall14/php-calendar Remember to add the composer autoloader before using the class and use the correct namespace. require 'vendor/autoload.php'; use benhall14\\phpCalendar\\Calendar as Calendar; Usage Please make sure you have added the required classes. Styling You can apply styles in one of three ways: 1) Using $calendar- stylesheet() after you have initialised a calendar; 2) Using the calendar.css (or calendar.min.css) from the css directory; 3) Create your own stylesheet and add it to the head of your HTML document. Migration With the release of 2.0, there were some breaking changes. This includes how dates are passed to the draw method, and the translations. The display() method no longer works like this: Instead, it now expects an associative array, like: See \"Translated Calendars\" for more information on how calendars are now translated. Draw a 'Month View' calendar In its simplest form, use the following to create a calendar for current month. This will use all defaults (English, Week starting on Sunday, including stylesheet, printing to the page). Or, you can break it down with full customisability: Draw a 'Week View' calendar Instead of a 'month view' cal","default_branch":null,"files":null,"tree":[],"storefront":"/r/benhall14","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/benhall14/php-calendar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}