2017 © Pedro Peláez
 

library pig

Simple ICS generator for PHP

image

webcretaire/pig

Simple ICS generator for PHP

  • Sunday, June 17, 2018
  • by Webcretaire
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 104 % Grown

The README.md

PIG

Latest Stable Version Quality Gate Status, (*1)

Simple ICS generator for PHP, (*2)

Usage

When creating a new calendar, you can optionally pass a TZID as a string to the constructor to make sure it will be correctly interpreted (this is highly recommended). The list of supported timezones can be found here, (*3)

$ics = new PIG\ICS('Europe/Paris'); // For example, or any timezone

Then you just have to put all your events using the addEvent function, (*4)

$ics->addEvent(
        '2018-10-06 20:15:00', // Start
        '2018-10-07 02:00:00', // End
        'Awesome party', // Title
        'At my house', // Optionnal location
        'Amazing party, with friends and all' // Optionnal description
    )->addEvent( // You can chain theese calls if you want
        new \DateTime('2018-10-07 15:00:42'), // Dates can be a \Datetime too
        new \DateTime('2018-10-07 02:00:00'),
        'House cleaning ...'
    );

Finally to write the file on disk, you need to call the saveICS function, providing the path you want to write to, (*5)

$ics->saveICS('path.ics');

The Versions

17/06 2018

dev-master

9999999-dev

Simple ICS generator for PHP

  Sources   Download

The Development Requires

by Julien EMMANUEL

17/06 2018

v0.1.3

0.1.3.0

Simple ICS generator for PHP

  Sources   Download

The Development Requires

by Julien EMMANUEL

17/06 2018

v0.1.2

0.1.2.0

Simple ICS generator for PHP

  Sources   Download

The Development Requires

by Julien EMMANUEL

13/06 2018

v0.1.1

0.1.1.0

Simple ICS generator for PHP

  Sources   Download

The Development Requires

by Julien EMMANUEL

07/10 2017

v0.1.0

0.1.0.0

Simple ICS generator for PHP

  Sources   Download

The Development Requires

by Julien EMMANUEL