Download the PHP package campusunion/sked without Composer
On this page you can find all versions of the php package campusunion/sked. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download campusunion/sked
More information about campusunion/sked
Files in campusunion/sked
Package sked
Short Description Open source PHP calendar library
License MIT
Homepage http://github.com/CampusUnion/Sked
Informations about the package sked
Sked
Open source PHP Calendar library.
Installation & Setup
First, run the SQL create statements on your database:
Then, instantiate Sked in your code with data connection credentials:
Basic usage
Event form
Saving events to the database
Build a custom calendar by iterating through a specified date range:
The SkeDate Object
A SkeDate
object is useful for populating a particular date in your calendar UI.
Print the date using the format()
method, which accepts a formatting
string as an optional parameter (see
formatting options
for PHP's date
function):
Then you can iterate through its events:
The SkeVent Object
A SkeVent
object allows for easy access and manipulation of an event.
Retrieve any database field (see SQL queries) as a property:
Print the event time using the time()
method, which accepts a formatting
string as an optional parameter (see
formatting options
for PHP's date
function):
SkeVent::time()
accepts a second optional parameter for timezone adjustment.
To adjust the event's time to a particular timezone, just pass in the timezone
offset integer:
Basic-er Usage
For an instant, non-customized event form, use the magical skeDoosh()
method.
The only required configuration is connection parameters for your data store.
Call skeDoosh()
from the exact spot in your code where you want the HTML form
to be displayed: