PHPackages                             linktoahref/vevent - 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. linktoahref/vevent

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

linktoahref/vevent
==================

A Simple VEvent Generator

07PHP

Since May 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/linktoahref/vevent)[ Packagist](https://packagist.org/packages/linktoahref/vevent)[ RSS](/packages/linktoahref-vevent/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

A Simple VEvent Generator
=========================

[](#a-simple-vevent-generator)

### Installation

[](#installation)

```
composer require linktoahref/vevent

```

### Usage

[](#usage)

```
use LTAH\Generator\VEvent;

$event = VEvent::create('Event Summary or Title', new DateTime('2018-05-10'), new DateTime('2018-05-11'));

$event->addOrganizer('Organizer Name', 'test@mail.com');

$event->addAttendees('Attendee Name', 'foo@bar.com');

echo $event->render();
```

### Send the Event in Mail

[](#send-the-event-in-mail)

If using Laravel you could modify the Mailable class's `withSwiftMessage` method within the `build` method

```
$this->markdown('emails.mailable')
        ->with([ params ]);

$this->withSwiftMessage(function ($message) use ($ical, $subject) {
    $message->setBody($event->render(), 'text/calendar; charset="utf-8"; method=REQUEST');
    $message->addPart($this->buildView()['html']->toHtml(), 'text/html');
});

return
    $this->subject($subject)
        ->attachData($event->render(), 'meeting.ics', [
            'mime' => 'text/calendar; charset="utf-8"; method=REQUEST',
        ]);
```

*This would render the event with styling in gmail and outlook*

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15182823?v=4)[Rahul Chandrasekharan](/maintainers/linktoahref)[@linktoahref](https://github.com/linktoahref)

---

Top Contributors

[![linktoahref](https://avatars.githubusercontent.com/u/15182823?v=4)](https://github.com/linktoahref "linktoahref (3 commits)")

---

Tags

laravel-packagevevent

### Embed Badge

![Health badge](/badges/linktoahref-vevent/health.svg)

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

###  Alternatives

[silverstripers/seo

SEO for SilverStripe websites

1144.9k](/packages/silverstripers-seo)

PHPackages © 2026

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