PHPackages                             dyvelop/icalcreator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. dyvelop/icalcreator-bundle

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

dyvelop/icalcreator-bundle
==========================

Symfony bundle for creating iCal formatted files

v1.0.0(8y ago)26.5k[1 PRs](https://github.com/dyvelop/icalcreator-bundle/pulls)MITPHPPHP &gt;=5.3.9

Since Jun 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dyvelop/icalcreator-bundle)[ Packagist](https://packagist.org/packages/dyvelop/icalcreator-bundle)[ RSS](/packages/dyvelop-icalcreator-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7cc96d061c75706a2e261fa62a4221eb87543f45cb50f3941e7e59c3f3b2e953/68747470733a2f2f7472617669732d63692e6f72672f647976656c6f702f6963616c63726561746f722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dyvelop/icalcreator-bundle)

Dyvelop iCalcreator Bundle
==========================

[](#dyvelop-icalcreator-bundle)

This bundle provides some utilities for using the iCalcreator PHP library () in Symfony.

Installation
------------

[](#installation)

### Step 1: Download

[](#step-1-download)

Download via [Composer](https://getcomposer.org/)

```
composer require dyvelop/icalcreator-bundle
```

This project requires the packagist distribution from  in version 2.22.

### Step 2: Enable Bundle

[](#step-2-enable-bundle)

Enable the Bundle in the `app/AppKernel.php` file in your Symfony project:

```
// File: app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new \Dyvelop\ICalCreatorBundle\DyvelopICalCreatorBundle(),
        );

        // ...

        return $bundles;
    }

    // ...
}
```

Configuration
-------------

[](#configuration)

### Unique ID

[](#unique-id)

You can change the default [unique ID](http://kigkonsult.se/iCalcreator/docs/using.html#Unique_id) for calendars with following configuration.

```
dyvelop_icalcreator:
    default_unique_id: DyvelopICalCreatorBundle
```

### Timezone

[](#timezone)

If you want to create calendar events in a timezone with [daylight saving time](https://en.wikipedia.org/wiki/Daylight_saving_time) (or summer time), you can set a default timezone globally via config:

```
dyvelop_icalcreator:
    default_timezone: Europe/Berlin
```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Create a new calendar:

```
$config = array(
    'unique_id' => 'My unique calendar name',
    'format'    => 'ical',            // or 'xcal'
    'filename'  => 'my-calendar.ics'  // or 'my-calendar.xml'
);
$calendar = $this->get('dyvelop_icalcreator.factory')->create($config);
```

Create a new calendar event:

```
$event = $calendar->newEvent();
$event->setUid('foo');
$event->setSummary('Bar');
$event->setDtstart(2016, 10, 6, 20);
$event->setDtend(2016, 10, 6, 21);
```

See  for detailed documentation of the iCalcreate PHP library.

### Render calendar via controller

[](#render-calendar-via-controller)

After creating a calendar you can use the `CalendarResponse` to render the file in your Symfony controller.

```
namespace AppBundle/Controller;

use Dyvelop\ICalCreatorBundle\Response\CalendarResponse;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    public function indexAction()
    {
        $calendar = $this->get('dyvelop_icalcreator.factory')->create();

        // add events to calendar etc.
        // ...

        return new CalendarResponse($calendar);
    }
}
```

### Attach calender file in mails

[](#attach-calender-file-in-mails)

Using the `CalendarAttachment` class you can attach your calendar file in a Swiftmailer mail message.

```
use  Dyvelop\ICalCreatorBundle\Mailer\CalendarAttachment;

// create a new mail message via Swiftmailer
$mailer = $this->get('mailer');
$message = $mailer->createMessage();

// create calendar
$calendar = $this->get('dyvelop_icalcreator.factory')->create();

// add events to calendar etc.
// ...

// add calender attachment
$attachment = new CalendarAttachment($calendar);
$message->attach($attachment);

// add other message configurations like subject or body
// ...

$mailer->send($message);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~153 days

Recently: every ~123 days

Total

7

Last Release

2700d ago

PHP version history (2 changes)v1.0.0-alphaPHP &gt;=5.3.9

v1.1.0-alpha1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/dba2bbe9ac88edd3b72f3d847cd6d955aeb0ba376589d0012c70e4ddc659903d?d=identicon)[fdyckhoff](/maintainers/fdyckhoff)

---

Top Contributors

[![fdyckhoff](https://avatars.githubusercontent.com/u/14044108?v=4)](https://github.com/fdyckhoff "fdyckhoff (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dyvelop-icalcreator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dyvelop-icalcreator-bundle/health.svg)](https://phpackages.com/packages/dyvelop-icalcreator-bundle)
```

###  Alternatives

[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
