dev-master
9999999-dev https://github.com/armetiz/simple-icsA PHP 7.1+ library for generating simple ICS file.
MIT
The Requires
- php ^7.1
- beberlei/assert ^2.9
event ics
Wallogit.com
2017 © Pedro Peláez
A PHP 7.1+ library for generating simple ICS file.
Create a very simple ICS Event., (*1)
Allowed parameters: * Summary * Description * Location * Start date * End date * Organizer name & email * Attendees name & email * Alarms, (*2)
<?php
use Armetiz\SimpleICS\ICSEvent;
$icsEvent = new ICSEvent([
'startAt' => new DateTimeImmutable('+3 days'),
'endAt' => new DateTimeImmutable('+5 days'),
'summary' => 'Work session - Thomas Tourlourat',
'description' => 'First time work session; will be awesome!',
'location' => 'Lyon, France',
'organizer' => [
'email' => 'thomas@tourlourat.com',
'name' => 'Thomas Tourlourat',
],
'attendees' => [
'thomastourlourat@gmail.com' => 'Thomas Tourlourat',
],
'alarms' => [],
], 'wozbe.com');
file_put_contents('/tmp/work-session.ics', $icsEvent->output());
A PHP 7.1+ library for generating simple ICS file.
MIT
event ics