PHPackages                             stillat/antlers-layouts - 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. stillat/antlers-layouts

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

stillat/antlers-layouts
=======================

v2.1.0(2y ago)16.4kPHPPHP ^8.0

Since Apr 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Stillat/antlers-layouts)[ Packagist](https://packagist.org/packages/stillat/antlers-layouts)[ GitHub Sponsors](https://github.com/JohnathonKoster)[ RSS](/packages/stillat-antlers-layouts/feed)WikiDiscussions main-v2 Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (7)Used By (0)

Antlers Layouts
===============

[](#antlers-layouts)

> Antlers Layouts is a Statamic addon that allows you to extend arbitrary layouts and pass data to your template's layouts.

Features
--------

[](#features)

This addon:

- Allows you to extend arbitrary layouts from within your Antlers templates;
- Pass data to layouts from templates

How to Install
--------------

[](#how-to-install)

You can install this addon by running the following command from your project root:

```
composer require stillat/antlers-layouts
```

How to Use
----------

[](#how-to-use)

The Antlers Layouts addon provides a single `layout` Tag that allows you to extend arbitrary layouts and pass data to your template's layout. The recommended way to organize multiple layouts within your Statamic project is to create a new folder at the following locations to contain your extra layout templates:

```
resources/views/layouts/

```

Assuming we had a file named `resources/views/layouts/custom-layout.antlers.html`, we could use dynamically swap to this layout by including the following Antlers tag anywhere in our template:

```
{{ layout:layouts/custom-layout }}
```

By including this Tag, Antlers will now utilize the `resources/views/layouts/custom-layout.antlers.html` file as our layout instead of the normal `resources/views/layout.antlers.html` file.

We can use the `layout:share` Tag to pass data to our Antlers layout files:

```
{{ layout:share variable_one="Value One"
                variable_two="Another value"
                :variable_three="title" /}}
```

> It is important to note that the `layout:share` Tag will only pass custom variables to the standard `layout.antlers.html` template file, and custom layouts located within the `resources/views/layouts/` folder.

Our custom variables created using the `layout:share` Tag will now be available to us in our layout file like any other variable:

```
{{# Inside the layout template. #}}

{{ variable_one }}
{{ variable_two }}
{{ variable_three }}
```

License
-------

[](#license)

Antlers Layouts is free software released under the MIT License.

###  Health Score

29

↓

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

731d ago

Major Versions

v1.0.1 → v2.0.02023-05-10

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![JohnathonKoster](https://avatars.githubusercontent.com/u/5232890?v=4)](https://github.com/JohnathonKoster "JohnathonKoster (15 commits)")

---

Tags

laravelstatamic

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/stillat-antlers-layouts/health.svg)

```
[![Health](https://phpackages.com/badges/stillat-antlers-layouts/health.svg)](https://phpackages.com/packages/stillat-antlers-layouts)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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