PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 660 This week: 1All time: 4,875 This week: 560Up
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: Pakistan Pakistan
Age: 26
All time rank: 6147 in Pakistan Pakistan
Week rank: 34 Up1 in Pakistan Pakistan 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  
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  /  assets  
File Role Description
Files folder imagecss (3 files)
Files folder imagejs (4 files)

  Files folder image Files  /  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  /  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  /  import_to_db  
File Role Description
  Accessible without login Plain text file event_calendar.sql Data Auxiliary data

  Files folder image Files  /  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:660
This week:1
All time:4,875
This week:560Up
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:406
 
Great! Thank you.
7 years ago (jose disla)
77%StarStarStarStar