PHPackages                             vtrotot/mag-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vtrotot/mag-post-type

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

vtrotot/mag-post-type
=====================

Mag Custom Post Type for WordPress Theme

1.1.1(4y ago)0182MITPHPPHP &gt;=7

Since Jun 9Pushed 4y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

MagPostType
===========

[](#magposttype)

MagPostType est un package permettant d'ajouter un Custom Post Type `vt_kiosque` à un theme WordPress.
Ce Custom Post Type ajoute deux metadata : un nom et une url pour le fichier PDF.

La classe `VincentTrotot\Mag\MagPostType` paramètre le Custom Post Type tandis que la classe `VincentTrotot\Mag\Mag` est une espèce de wrapper du Post (la classe hérite de la classe `Timber\TimberPost`).

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

[](#installation)

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

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

[](#utilisation)

Votre theme doit instancier la classe `MagPostType`

```
new VincentTrotot\Mag\MagPostType();
```

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

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

Ou récupérer plusieurs posts avec :

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

6

Last Release

1711d ago

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

v1.0.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 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[illuminate/cookie

The Illuminate Cookie package.

224.3M120](/packages/illuminate-cookie)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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