PHPackages                             webcretaire/pig - 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. webcretaire/pig

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webcretaire/pig
===============

Simple ICS generator for PHP

0.2.1(7y ago)1118PHP

Since Oct 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Webcretaire/PIG)[ Packagist](https://packagist.org/packages/webcretaire/pig)[ RSS](/packages/webcretaire-pig/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

PIG
===

[](#pig)

[![Latest Stable Version](https://camo.githubusercontent.com/334c60853dfb45359041ccde472b7ce40a9170995b2d84a2c01a6455469178ea/68747470733a2f2f706f7365722e707567782e6f72672f77656263726574616972652f7069672f762f737461626c65)](https://packagist.org/packages/webcretaire/pig)[![Quality Gate Status](https://camo.githubusercontent.com/9ed2680a69e30e11a450a1ecdc43b39ce36d8cc3727cab06d52c524a0cecbe48/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d57656263726574616972655f504947266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=Webcretaire_PIG)

Simple ICS generator for PHP

### Usage

[](#usage)

When creating a new calendar, you can optionally pass a TZID as a string to the constructor to make sure it will be correctly interpreted (this is highly recommended). The list of supported timezones can be found [here](https://github.com/Webcretaire/PIG/tree/master/timezones)

```
$ics = new PIG\ICS('Europe/Paris'); // For example, or any timezone
```

Then you just have to put all your events using the `addEvent` function

```
$ics->addEvent(
        '2018-10-06 20:15:00', // Start
        '2018-10-07 02:00:00', // End
        'Awesome party', // Title
        'At my house', // Optionnal location
        'Amazing party, with friends and all' // Optionnal description
    )->addEvent( // You can chain theese calls if you want
        new \DateTime('2018-10-07 15:00:42'), // Dates can be a \Datetime too
        new \DateTime('2018-10-07 02:00:00'),
        'House cleaning ...'
    );
```

Finally to write the file on disk, you need to call the `saveICS` function, providing the path you want to write to

```
$ics->saveICS('path.ics');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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 ~77 days

Recently: every ~35 days

Total

6

Last Release

2754d ago

### Community

Maintainers

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

---

Top Contributors

[![Webcretaire](https://avatars.githubusercontent.com/u/12281309?v=4)](https://github.com/Webcretaire "Webcretaire (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webcretaire-pig/health.svg)

```
[![Health](https://phpackages.com/badges/webcretaire-pig/health.svg)](https://phpackages.com/packages/webcretaire-pig)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

320392.1k17](/packages/codewithdennis-filament-select-tree)[james.xue/ali-safe-api

阿里内容检测，包括文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测、广告、二维码等

664.8k1](/packages/jamesxue-ali-safe-api)

PHPackages © 2026

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