PHPackages                             acrnogor/ical-exporter - 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. acrnogor/ical-exporter

ActiveLibrary

acrnogor/ical-exporter
======================

v0.7.4(8y ago)13.5k1MITPHP

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/acrnogor/ical-exporter)[ Packagist](https://packagist.org/packages/acrnogor/ical-exporter)[ RSS](/packages/acrnogor-ical-exporter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (15)Used By (0)

Simple ICal Exporter library
============================

[](#simple-ical-exporter-library)

requires Twig templating engine to render ICS files.

#### Installation:

[](#installation)

```
composer require acrnogor/ical-exporter
```

#### Usage:

[](#usage)

```
// first, we need Twig environement
$loader = new Twig_Loader_Filesystem();
$twig   = new Twig_Environment($loader, [
    'cache' => __DIR__ . '/var/cache',
]);

// now create new ICalExporter object and download event items as ICS file
$filename = 'this-is-my-calendar.ics';
$icalExporter = new ICalExporter($twig);
$ice->downloadAsICal($items, $filename);
```

#### Or, if you just want ICS body as string/text:

[](#or-if-you-just-want-ics-body-as-stringtext)

```
// you an either repeat Twig part or just use Dependency Injection (i.e. in Symfony) to inject twig to the class, then fetch it as a service
...

// now create new ICalExporter object and download event items as ICS file
$icalExporter = new ICalExporter($twig);
$icsText = $ice->getICalDataAsString($items);
echo $icsText;
```

#### Symfony 3.0+ usage

[](#symfony-30-usage)

Add ICalExporter to your Symfony project via composer install. Then, define a Symfony service in your services.yml:

```
ical_exporter:
    class: Acrnogor\ICalExporter\ICalExporter
    arguments: ["@twig"]
```

and then register template path in twig configuration in config.yml:

```
twig:
    paths:
        '%kernel.root_dir%/../vendor/acrnogor/ical-exporter/src/View/': ~
```

then you can use this service in your controller like zis:

```
$icalExporter = $this->get('ical_exporter');
$icalExporter->downloadAsICal($events, 'give-some-filename.ics');
```

#### Todo:

[](#todo)

- maybe implement a non twig version? Meh...

#### On packagist:

[](#on-packagist)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~31 days

Recently: every ~2 days

Total

14

Last Release

2970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/009ca46455e3ea5cfd4f8bd61d580c7f4020b529af3a57a4335b0ce774df5a2f?d=identicon)[acrnogor](/maintainers/acrnogor)

---

Top Contributors

[![acrnogor](https://avatars.githubusercontent.com/u/12210714?v=4)](https://github.com/acrnogor "acrnogor (7 commits)")[![bephrimast](https://avatars.githubusercontent.com/u/28836659?v=4)](https://github.com/bephrimast "bephrimast (1 commits)")

### Embed Badge

![Health badge](/badges/acrnogor-ical-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/acrnogor-ical-exporter/health.svg)](https://phpackages.com/packages/acrnogor-ical-exporter)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M650](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[saithink/saiadmin

webman plugin

2709.9k1](/packages/saithink-saiadmin)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1121.2k](/packages/abydahana-aksara)[forme/framework

An MVC framework for WordPress.

175.0k3](/packages/forme-framework)

PHPackages © 2026

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