2017 © Pedro Peláez
 

library simple-ics

A PHP 7.1+ library for generating simple ICS file.

image

armetiz/simple-ics

A PHP 7.1+ library for generating simple ICS file.

  • Tuesday, May 22, 2018
  • by armetiz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple ICS

Create a very simple ICS Event., (*1)

Allowed parameters: * Summary * Description * Location * Start date * End date * Organizer name & email * Attendees name & email * Alarms, (*2)

Usage

<?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());

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/armetiz/simple-ics

A PHP 7.1+ library for generating simple ICS file.

  Sources   Download

MIT

The Requires

 

event ics