2017 © Pedro Peláez
 

library ical-php

Generate an iCal file by providing event objects

image

rb-cohen/ical-php

Generate an iCal file by providing event objects

  • Wednesday, August 17, 2016
  • by rb-cohen
  • Repository
  • 1 Watchers
  • 3 Stars
  • 305 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

ical-php

Generate an iCal file by providing event objects, (*1)

Example

<?php

use Ical\Feed;
use Ical\Component\Calendar;
use Ical\Component\Event;

// One feed (i.e. URL) can host more than one caldenar, lets create a feed
$feed = new Feed();

// This calendar will contain our events
$calendar = new Calendar('ical-example//v1');

$event = new Event('uid-1@example');
$event->created(new DateTime('2015-01-01'));
$event->lastModified(new DateTime('2015-01-05'));
$event->between(new DateTime('2015-04-01'), new DateTime('2015-04-01'));
$event->summary('Example of an event');
$event->allDay(true);

// Add this event to the calendar
$calendar->addEvent($event);

// Add the calendar to the feed
$feed->addCalendar($calendar);

// Output the feed with appropriate HTTP header
$feed->output();
exit;

The Versions

17/08 2016

dev-master

9999999-dev

Generate an iCal file by providing event objects

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Arron Woods

17/08 2016

1.0.3

1.0.3.0

Generate an iCal file by providing event objects

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Arron Woods

16/08 2016

1.0.2

1.0.2.0

Generate an iCal file by providing event objects

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Arron Woods

21/07 2015

1.0.1

1.0.1.0

Generate an iCal file by providing event objects

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Arron Woods

24/06 2015

1.0.0

1.0.0.0

Generate an iCal file by providing event objects

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Arron Woods