PHPackages                             vtrotot/event-post-type - 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. vtrotot/event-post-type

ActiveLibrary

vtrotot/event-post-type
=======================

Event Custom Post Type for WordPress Theme

2.7.1(1y ago)0265MITPHPPHP &gt;=7

Since Jun 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/VincentTrotot/EventPostType)[ Packagist](https://packagist.org/packages/vtrotot/event-post-type)[ RSS](/packages/vtrotot-event-post-type/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (39)Used By (0)

EventPostType
=============

[](#eventposttype)

EventPostType est un package permettant d'ajouter un Custom Post Type `vt_events` à un theme WordPress.
Ce Custom Post Type ajoute trois metadata : Une date de début, une date de fin, et un lieu.

La classe `VincentTrotot\Event\EventPostType` paramètre le Custom Post Type.
La classe `VincentTrotot\Event\Event` est une espèce de wrapper du Post (la classe hérite de la classe `Timber\TimberPost`).
Une classe `VincentTrotot\Event\SportEvent` hérite de la classe `VincentTrotot\Event\Event` en y ajoutant des méthodes pour gérer l'agenda avec une saisonalité sportive. On peut aussi ajouter une catégorie `club` à un événement pour dire si un événement est à destination des adhérents. La classe ajoute une propriété `$outdated` pour savoir si l'événement est déjà passé dans la saison.

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

[](#installation)

```
composer require vtrotot/event-post-type
```

Utilisation
-----------

[](#utilisation)

Votre theme doit instancier la classe `EventPostType`

```
new VincentTrotot\Event\EventPostType();
```

Vous pouvez ensuite récupérer un Post de type Event:

```
$post = new VincentTrotot\Event\Event();
```

Ou récupérer plusieurs posts avec :

```
$args = [
    'post_type' => 'vt_event',
    ...
];
$posts = new Timber\TimberRequest($args, VincentTrotot\Event\Event::class);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~118 days

Total

38

Last Release

570d ago

Major Versions

v1.3.8 → 2.0.02021-07-26

1.3.12 → 2.22022-02-23

PHP version history (2 changes)v1.1.2PHP &gt;=5.6

v1.1.3PHP &gt;=7

### Community

Maintainers

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

---

Top Contributors

[![VincentTrotot](https://avatars.githubusercontent.com/u/8166996?v=4)](https://github.com/VincentTrotot "VincentTrotot (29 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vtrotot-event-post-type/health.svg)

```
[![Health](https://phpackages.com/badges/vtrotot-event-post-type/health.svg)](https://phpackages.com/packages/vtrotot-event-post-type)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[api-platform/http-cache

API Platform HttpCache component

223.2M7](/packages/api-platform-http-cache)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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