hansvn / laravel-vcalendar by hansvn

VCalendar generator for the laravel Framework
15,323
5
2
Package Data
Maintainer Username: hansvn
Maintainer Contact: hans@brandworks.be (HansVN)
Package Create Date: 2017-03-10
Package Last Update: 2020-03-19
Language: PHP
License: MIT
Last Refreshed: 2024-04-25 15:06:57
Package Statistics
Total Downloads: 15,323
Monthly Downloads: 294
Daily Downloads: 17
Total Stars: 5
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

iCalendar Generator for laravel

This package contains an iCalendar file generator for laravel. Created from some code I had lying around.

Usage

$vcalendar = array(
    'prodid' => array('company' => 'My Company', 'product' => 'VCalendar attachment', 'language' => \App::getLocale()),
    'uid' => 'my@email.address',
    'organizer' => array('name' => 'my name', 'email' => 'my@email.address'),
    'location' => 'Grand Canyon',
    'subject' => 'Hiking',
    'description' => 'Going on a trip',
    'start_date' => '2017-03-10 09:00:00',
    'end_date' => '2017-03-10 19:00:00',
    'attendees' => array(
        array('name' => 'an invitee', 'email' => 'invitee@email.address'),
    )
);

//return file_path on temp directory
$file = VCalendar::generate($vcalendar);

Installation

Laravel 5.x:

After updating composer, add the ServiceProvider to the providers array in config/app.php

Hansvn\Vcalendar\ServiceProvider::class,

Add this to your facades:

'VCalendar' => Hansvn\Vcalendar\Facade::class

Laravel 4.x:

After updating composer, add the ServiceProvider to the providers array in config/app.php

'Hansvn\Vcalendar\L4ServiceProvider',

Add this to your facades:

'VCalendar' => 'Hansvn\Vcalendar\L4Facade'

License

The MIT License (MIT). Please see License File for more information.