2017 © Pedro Peláez
 

library icalendar-creator

Create iCalendar files.

image

theantichris/icalendar-creator

Create iCalendar files.

  • Tuesday, October 31, 2017
  • by theantichris
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,476 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 18 % Grown

The README.md

iCalendar-Creator

Creates iCalendar (.ics) files., (*1)

Getting Started

Include the package in your composer.json file., (*2)

"require": {
        "theantichris/icalendar-creator": "v1.0.0"
},

Classes

Location

Stores and formats the output for the location part of the ICS file., (*3)

The constructor accepts name, address line 1, address line 2, city, state, and postal code as strings. Only name is required., (*4)

new Location($name, $address1, $address2, $city, $state, $postalCode);

iCalendar

Stores and outputs the needed information for the ICS file., (*5)

The constructor accepts event name (string), event start (DateTime), event end (DateTime), event description (string), location (Location), organizer name (string), and organizer email (string). Only event name, event start, and event end are required., (*6)

new iCalendar($eventName, $eventStart, $eventEnd, $eventDescription, $eventLocation, $organizerName, $organizerEmail);

iCalendarCreator

This class has two static method for creating and viewing an ICS file., (*7)

createIcsFile

This method generates an ICS file based on the iCalendar object passed in., (*8)

iCalendarCreator::createIcsFile($iCalendar);

viewIcsFile

This method echoes the content of the ICS file., (*9)

iCalendarCreator::viewIcsFile($iCalendar);

The Versions

31/10 2017

dev-master

9999999-dev https://github.com/theantichris/iCalendar-Creator

Create iCalendar files.

  Sources   Download

GNU3

The Requires

  • php >=5.3.0

 

calendar ical icalendar

31/10 2017

v1.0.1

1.0.1.0 https://github.com/theantichris/iCalendar-Creator

Create iCalendar files.

  Sources   Download

GNU3

The Requires

  • php >=5.3.0

 

calendar ical icalendar

16/07 2014

v1.0.0

1.0.0.0 https://github.com/theantichris/iCalendar-Creator

Create iCalendar files.

  Sources   Download

GNU3

The Requires

  • php >=5.3.0

 

calendar ical icalendar