PHPackages                             xima-media/ical-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xima-media/ical-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

xima-media/ical-bundle
======================

The XIMA iCal Bundle

0.2.3(2y ago)1781PHPPHP ^8.0

Since Sep 24Pushed 2y ago13 watchersCompare

[ Source](https://github.com/xima-media/ical-bundle)[ Packagist](https://packagist.org/packages/xima-media/ical-bundle)[ RSS](/packages/xima-media-ical-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (12)Used By (0)

iCal Bundle
===========

[](#ical-bundle)

Wraps the [eluceo/ical](https://github.com/markuspoerschke/iCal) package to a Symfony Bundle with Doctrine Association Mappings and includes Sonata Admin classes.

### Installation

[](#installation)

```
composer require xima-media/ical-bundle
```

**Notes:**

- The dependency to the *eluceo/ical* fork depends on [markuspoerschke/iCal#50](https://github.com/markuspoerschke/iCal/pull/50) and will be removed as soon as the pull request is accepeted.
- The dependency to the dev version of *herrera-io/doctrine-dateinterval* depends on [kherge-archive/php-doctrine-dateinterval#3](https://github.com/kherge-archive/php-doctrine-dateinterval/issues/3) and will be removed as soon as a new release is out.

Load the bundle in `app/AppKernel.php`:

```
public function registerBundles()
{
    $bundles = array(
    ...
    new Xima\ICalBundle\XimaICalBundle()
}
```

### Configuration

[](#configuration)

Your projects needs to support the dbal types **json** and **dateinterval**, configured in your `app/config/config.yml`, e.g.:

```
doctrine:
    dbal:
      ...
      types:
            json: Sonata\Doctrine\Types\JsonType
            dateinterval:  Herrera\Doctrine\DBAL\Types\DateIntervalType
```

### Integration

[](#integration)

##### 1. Create en event entity

[](#1-create-en-event-entity)

You need to create a custom Event class that inherits from ICalBundle's Event class, e.g.:

```
