PHP Classes

HB PHP Events Calendar: Display HTML calendars with events from a database

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 674 This week: 1All time: 4,801 This week: 39Up
Version License PHP version Categories
hbeventscalendar 1.0.0Freeware5HTML, PHP 5, Time and Date
Description 

Author

This package can display HTML calendars with events from a database.

It can connect to a MySQL database using PDO and perform queries to retrieve dates of events.

The package can also generate HTML pages with calendars marked with the event dates using the jQuery full calendar plugin.

Picture of Haseeb Ahmad Basil
  Performance   Level  
Name: Haseeb Ahmad Basil is available for providing paid consulting. Contact Haseeb Ahmad Basil .
Classes: 11 packages by
Country: United States United States
Age: 26
All time rank: 60981 in United States United States
Week rank: 10 Up1 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Recommendations

Display calendar of events from MySQL using PDO
I want to display a calendar with the events from a database

Example

<?php

include 'src/calendarHTML.php';
include
'src/eventCalendar.php';
include
'src/eventsDBGateway.php';


$config = ['dbname'=>'event_calendar', 'dbhost' => 'localhost', 'dbuser' => 'root', 'dbpass' => '', 'dbtable' => 'events', 'assetsPath' => 'assets/', 'defaultDate' => date("Y-m-d")];

$events = new HBEventsCalendar\eventCalendar($config);

echo(
$events->getCalendar('all', null));



Details

READ ME for HBEventsCalendar: To Begin Import data from event_calendar.sql to your DB. check the test files to see how to use specific functionalities. Configure the `$config` variable for DB information and other settings. event_calendar.sql contains some dummy data and the structure for the table. It is inside import_to_db directory. Regards

  Files folder image Files (16)  
File Role Description
Files folder imageassets (2 directories)
Files folder imageimport_to_db (1 file)
Files folder imagesrc (3 files)
Accessible without login Plain text file byIdTest.php Example Example script
Accessible without login Plain text file fetchAllTest.php Example Example script
Accessible without login Plain text file readMe.txt Doc. Documentation
Accessible without login Plain text file setEventTest.php Example Example script
Accessible without login Plain text file whereTest.php Example Example script

  Files folder image Files (16)  /  assets  
File Role Description
Files folder imagecss (3 files)
Files folder imagejs (4 files)

  Files folder image Files (16)  /  assets  /  css  
File Role Description
  Accessible without login Plain text file fullcalendar.css Data Auxiliary data
  Accessible without login Plain text file fullcalendar.min.css Data Auxiliary data
  Accessible without login Plain text file fullcalendar.print.css Data Auxiliary data

  Files folder image Files (16)  /  assets  /  js  
File Role Description
  Accessible without login Plain text file fullcalendar.min.js Data Auxiliary data
  Accessible without login Plain text file jquery-ui.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.min.js Data Auxiliary data
  Accessible without login Plain text file moment.min.js Data Auxiliary data

  Files folder image Files (16)  /  import_to_db  
File Role Description
  Accessible without login Plain text file event_calendar.sql Data Auxiliary data

  Files folder image Files (16)  /  src  
File Role Description
  Plain text file calendarHTML.php Class Class source
  Plain text file eventCalendar.php Class Class source
  Plain text file eventsDBGateway.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:674
This week:1
All time:4,801
This week:39Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:79%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:403
 
Great! Thank you.
7 years ago (jose disla)
77%StarStarStarStar