An ical file maker

1.0.0 2017-07-21 11:58 UTC

This package is auto-updated.

Last update: 2024-11-27 14:03:17 UTC


README

It's a simple little thing, but it keeps comming back so I made a package for it. This package contains a single class which generates an iCal (.ics) file for your agenda to import.

Functionality

  • Create stream or get the content
  • Alarm functionality
  • Visibility for Microsoft and others combined in availiblilty
  • Title, summary and description are all custom but fallback on title.
  • Start date/end data gets the timezone from Laravel config, but can be overwritten if needed.
  • Set an alarm

Streaming

use Thorazine\Ics\Ics;

$ical = new Ics([
	'title' => 'Test Ics', 
	'startDate' => '2017-07-21 12:00:00', 
	'endDate' => '2017-07-21 14:00:00',
]);

$ical->stream();

Save to file

use Thorazine\Ics\Ics;

$ical = new Ics([
	'title' => 'Test Ics', 
	'startDate' => '2017-07-21 12:00:00', 
	'endDate' => '2017-07-21 14:00:00',
]);

file_put_contents('some-filename.ics', $ical->get());

Options

Options are inserted in the array when creating a new Ics class