PHPackages                             internations/type-jail-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. internations/type-jail-bundle

ActiveLibrary[Templating &amp; Views](/categories/templating)

internations/type-jail-bundle
=============================

Constraint objects to super types for templating

v3.0.0(3y ago)151.6kMITPHPPHP &gt;=7.4

Since Jan 15Pushed 3y ago33 watchersCompare

[ Source](https://github.com/InterNations/type-jail-bundle)[ Packagist](https://packagist.org/packages/internations/type-jail-bundle)[ RSS](/packages/internations-type-jail-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (17)Used By (0)

Type Jail Bundle
================

[](#type-jail-bundle)

[![Test](https://github.com/InterNations/type-jail-bundle/actions/workflows/tests.yaml/badge.svg)](https://github.com/InterNations/type-jail-bundle/actions/workflows/tests.yaml)

Enforce super type contract of an object in a Twig template

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

[](#installation)

Install with `composer require internations/type-jail-bundle:*`. Add `new InterNations\Bundle\TypeJailBundle\InterNationsTypeJailBundle()` in your `AppKernel.php` to load the bundle.

Configuration
-------------

[](#configuration)

```
inter_nations_type_jail:
    enabled: # boolean (default: reflects the kernel.debug setting)
    factory: # one of jail, super_type_jail, jail (default: jail)
    types: # A map of type aliases to not use full qualified namespaces in a template
        fileInfo: SplFileInfo

```

Usage
-----

[](#usage)

```
{% set file = jail(file, 'fileInfo') %}
```

```
{% set files = jail_aggregate(files, 'fileInfo') %}
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

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

Recently: every ~316 days

Total

12

Last Release

1453d ago

Major Versions

v0.3 → v1.0.02017-02-18

v1.1.1 → v2.0.02020-10-02

v2.1.0 → v3.0.02022-05-26

PHP version history (5 changes)v0.3PHP &gt;=5.6

v1.0.1PHP ~7

v1.1.1PHP ~7.1

v2.0.0PHP ^7.4

v3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/79707?v=4)[Lars Strojny](/maintainers/lstrojny)[@lstrojny](https://github.com/lstrojny)

![](https://www.gravatar.com/avatar/684ac7e28067e217fb76551137735510e86c5f69f05cd9aa6c9e6bfea1018758?d=identicon)[CMalvika](/maintainers/CMalvika)

---

Top Contributors

[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (21 commits)")[![CMalvika](https://avatars.githubusercontent.com/u/23334195?v=4)](https://github.com/CMalvika "CMalvika (2 commits)")[![phanan](https://avatars.githubusercontent.com/u/8056274?v=4)](https://github.com/phanan "phanan (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/internations-type-jail-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/internations-type-jail-bundle/health.svg)](https://phpackages.com/packages/internations-type-jail-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[a2lix/auto-form-bundle

Automate form building

873.8M11](/packages/a2lix-auto-form-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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