2017 © Pedro Peláez
 

library calendar

Build calendar (.ics) files.

image

jihoun/calendar

Build calendar (.ics) files.

  • Sunday, May 13, 2018
  • by jihoun
  • Repository
  • 2 Watchers
  • 3 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Build Status Code Climate, (*1)

Build calendar (.ics) file in php

This library allows quickly generating ics files in php. Outputs should be compatible with the standard https://tools.ietf.org/html/rfc5545. But currently, not every single bit of the standard is implemented., (*2)

Use

You can load this library in your project using composer:, (*3)

{
   "require": {
       "jihoun/calendar": "dev-master"
   },
}

Then in your code, do the following, (*4)

$event = new \Jihoun\Calendar\Component\Event();
$event
    ->setDateTimeStart(new Property\DateTimeStart(new \DateTime()))
    ->setDateTimeEnd(new Property\DateTimeEnd(new \DateTime()))
    ->setDescription(new Property\Description('Very very lengthy description'))
    ->setLocation(new Property\Location('in the office'))
    ->setOrganizer(new Property\Organizer('john.doe@gmail.com'))
    ->setSummary(new Property\Summary('new test event'));
$cal = new \Jihoun\Calendar\Calendar();
$cal->addComponent($event);
file_put_contents('cal.ics', $cal->toString());

Contributions and feedbacks

Feel free to make me any feedback and/or contribution., (*5)

The Versions

13/05 2018

1.x-dev

1.9999999.9999999.9999999-dev

Build calendar (.ics) files.

  Sources   Download

The Requires

  • php >=7.1

 

The Development Requires

by Nicolas Lagier

13/05 2018

dev-php71

dev-php71

Build calendar (.ics) files.

  Sources   Download

The Requires

  • php >=7.1

 

The Development Requires

by Nicolas Lagier

13/05 2018

v1.0.0

1.0.0.0

Build calendar (.ics) files.

  Sources   Download

The Requires

  • php >=7.1

 

The Development Requires

by Nicolas Lagier