2017 © Pedro Peláez
 

symfony-bundle ics-bundle

This bundle provides a dependency injection wrapper for the JsvrcekICS iCal library

image

jsvrcek/ics-bundle

This bundle provides a dependency injection wrapper for the JsvrcekICS iCal library

  • Monday, March 12, 2018
  • by jasvrcek
  • Repository
  • 2 Watchers
  • 8 Stars
  • 32,096 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

IcsBundle

Symfony Bundle providing dependency injection for the Jsvrcek\ICS library, which is for creating iCal .ics files., (*1)

Installation

composer req jsvrcek/ics-bundle, (*2)

Usage

    namespace App\Services;
    private Formatter $formatter;
    private CalendarExport $calendarExport;

    class MyService
    {

    public function __construct(Formatter $formatter, CalendarExport $calendarExport) {

        $this->formatter = $formatter;
        $this->calendarExport = $calendarExport;
    }
// or inject them into the controller

```php, (*3)

    public function calendarAction(Formatter $formatter, CalendarExport $calendarExport)
    {
    $eventOne = new CalendarEvent();
    $eventOne->setStart(new \DateTime())
        ->setSummary('Family reunion')
        ->setUid('event-uid');

    //add an Attendee
    $attendee = new Attendee($this->formatter); // or $formatter
    $attendee->setValue('moe@example.com')
        ->setName('Moe Smith');
    $eventOne->addAttendee($attendee);


        $response = new Response($calendarExport->getStream());
        $response->headers->set('Content-Type', 'text/calendar');

        return $response;
    }
}

The Versions

12/03 2018

dev-master

9999999-dev https://github.com/jasvrcek/IcsBundle

This bundle provides a dependency injection wrapper for the JsvrcekICS iCal library

  Sources   Download

MIT

The Requires

 

calendar export ical .ics rfc 5545

11/10 2016

dev-ics-master

dev-ics-master https://github.com/jasvrcek/IcsBundle

This bundle provides a dependency injection wrapper for the JsvrcekICS iCal library

  Sources   Download

MIT

The Requires

 

calendar export ical .ics rfc 5545

13/01 2016

0.1

0.1.0.0 https://github.com/jasvrcek/IcsBundle

This bundle provides a dependency injection wrapper for the JsvrcekICS iCal library

  Sources   Download

MIT

The Requires

 

calendar export ical .ics rfc 5545