PHP Calendar Class w/Google Demo ( code below example )

 
Sun
Mon
Tue
Wed
Thu
Fri
Sat
18
April 2013
April 2013
April 2013
1
2
3
4
19
5
6
7
8
9
10
11
20
12
13
14
15
16
17
18
21
19
20
21
22
23
24
  • 5:30a Normal Event w/all values
    Time: 5:30am-7:30pm
    Location: Wisconsin Rapids, WI
    Details:
    Can be mixed with regular events.
25
  • End month multi-event
  • 5:30a Normal Event w/all values
    Time: 5:30am-7:30pm
    Location: Wisconsin Rapids, WI
    Details:
    Can be mixed with regular events.
22
26
  • End month multi-event
  • 5:30a Normal Event w/all values
    Time: 5:30am-7:30pm
    Location: Wisconsin Rapids, WI
    Details:
    Can be mixed with regular events.
27
  • End month multi-event
  • 5:30a Normal Event w/all values
    Time: 5:30am-7:30pm
    Location: Wisconsin Rapids, WI
    Details:
    Can be mixed with regular events.
28
  • End month multi-event
  • 5:30a Normal Event w/all values
    Time: 5:30am-7:30pm
    Location: Wisconsin Rapids, WI
    Details:
    Can be mixed with regular events.
29
  • End month multi-event
30
  • End month multi-event
31
  • End month multi-event
June 2013
// The above is created with only a few lines of code
// ------------------------------------------------------------------------
include('calendar.class.php'); // No additional js,css or images needed 
$cal = new CALENDAR();
$cal->weeknumbers = 'left';
// That's it for the calendar! Now lets add some events.
$cal->addGoogleCalendar(
	array(
	'xmlfeed'=>'http://www.google.com/calendar/feeds/ckvf91cpb85v3crjn0mpnn53u4%40group.calendar.google.com/public/basic',
	'color'=>'#D6FFD6'
	)
);
$cal->addEvent(
	array(
		"title"=>"Normal Event w/all values",
		"from"=>"2013-5-24",
		"to"=>"2013-5-28",
		"starttime"=>"5:30am",
		"endtime"=>"7:30pm",
		"color"=>"#FFF6D6",
		"location"=>"Wisconsin Rapids, WI",
		"details"=>"Can be mixed with regular events.",
		"link"=>"http://www.klovera.com"
	)
);
echo $cal->showcal(); // show the calendar