Simple Easy To Use PHP Calendar Script
I keep finding fun scripts the more I look around. This one is from about a year ago, I used it in a small project so it isn’t the greatest. Regardless, it is very lightweight and is pretty flexible. It doesn’t include all that CRUD admin mumbo-jumbo because I’m being lazy, but it can be extended without too much trouble. (Notice I searched google for ‘php date ranges’ — thats explained somewhere in the documentation.)
Attachment
file.ubrio.us/code/class.calendar.zip
Documentation & example included in zip file
Sample Usage
$calendar = new calendar(); $my_events = array( 8 => "My birthday!", 19 => array( "#link-to-e-vite" => "[time=12:00pm]Work BBQ @ Shore House"), 31 => array( "End of a great month", "Beginning of a good month") ); $calendar->events($my_events)->generate(05, 2007);
Some Bugs
- events array doesn’t like leading zeros for events — simple enough fix
- php date bounds aren’t checked — simple enough fix
- i forget
Screenshot (Click for larger image)
![]()







Add Yours
YOU