PHPackages                             carlcs/craft-twigportal - 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. carlcs/craft-twigportal

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

carlcs/craft-twigportal
=======================

Twig Portal plugin for Craft CMS

2.0.1(4y ago)12642[1 issues](https://github.com/carlcs/craft-twigportal/issues)MITPHP

Since Jul 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/carlcs/craft-twigportal)[ Packagist](https://packagist.org/packages/carlcs/craft-twigportal)[ RSS](/packages/carlcs-craft-twigportal/feed)WikiDiscussions main Synced 2w ago

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

Warning

**This plugin has been abandoned.** With the release of Craft 4.5, the [`_globals`](https://craftcms.com/docs/4.x/dev/global-variables.html#globals) Twig variable has been added, rendering this plugin obsolete. The functionality it provided can now be achieved using the new variable.

Twig Portal plugin for Craft CMS
================================

[](#twig-portal-plugin-for-craft-cms)

Adds a portal tag to Twig, to render DOM anywhere in the document.

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

[](#installation)

Twig Portal is available in the Plugin Store. You can also install the plugin manually from the command line with the following commands.

```
composer require carlcs/craft-twigportal
php craft plugin/install twig-portal

```

Usage
-----

[](#usage)

\_layout.html

```

    {% block content %}
    {% endblock %}

    {{ portalTarget('modals') }}

```

index.html

```
{% extends '_layout' %}

{% block content %}
    {{ include('_component') }}
{% endblock %}
```

\_component.html

```
{% portal 'modals' %}
    This will be rendered where the “modals” portal target function is located.
{% endportal %}
```

License
-------

[](#license)

[MIT](LICENSE.md)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

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

Recently: every ~187 days

Total

8

Last Release

1533d ago

Major Versions

1.0.1 → 2.0.02022-04-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7516543?v=4)[carlcs](/maintainers/carlcs)[@carlcs](https://github.com/carlcs)

---

Top Contributors

[![carlcs](https://avatars.githubusercontent.com/u/7516543?v=4)](https://github.com/carlcs "carlcs (14 commits)")

---

Tags

craft-plugincraftcmstwigcraftcmsportal

### Embed Badge

![Health badge](/badges/carlcs-craft-twigportal/health.svg)

```
[![Health](https://phpackages.com/badges/carlcs-craft-twigportal/health.svg)](https://phpackages.com/packages/carlcs-craft-twigportal)
```

###  Alternatives

[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97343.8k17](/packages/nystudio107-craft-twigpack)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.6k1](/packages/wbrowar-guide)[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

43218.1k16](/packages/nystudio107-craft-autocomplete)[nystudio107/craft-emptycoalesce

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.

27145.6k3](/packages/nystudio107-craft-emptycoalesce)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1087.5k](/packages/jalendport-craft-preparse)[nystudio107/craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.

20110.2k3](/packages/nystudio107-craft-templatecomments)

PHPackages © 2026

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