PHPackages                             aura/view - 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. aura/view

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

aura/view
=========

Provides an implementation of the TemplateView and TwoStepView patterns, with support for helpers and for closures as templates, using PHP itself as the templating language.

2.4.0(4y ago)88162.3k—2.3%21[1 issues](https://github.com/auraphp/Aura.View/issues)19BSD-2-ClausePHPPHP &gt;=5.4.0CI passing

Since Nov 30Pushed 3w ago12 watchersCompare

[ Source](https://github.com/auraphp/Aura.View)[ Packagist](https://packagist.org/packages/aura/view)[ Docs](https://github.com/auraphp/Aura.View)[ RSS](/packages/aura-view/feed)WikiDiscussions 6.x Synced 2w ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (19)

Aura.View
=========

[](#auraview)

Provides an implementation of the [TemplateView](http://martinfowler.com/eaaCatalog/templateView.html) and [TwoStepView](http://martinfowler.com/eaaCatalog/twoStepView.html) patterns using PHP itself as the templating language. It supports both file-based and closure-based templates along with helpers and sections.

It is preceded by systems such as [`Savant`](http://phpsavant.com), [`Zend_View`](http://framework.zend.com/manual/en/zend.view.html), and [`Solar_View`](http://solarphp.com/class/Solar_View).

Foreword
--------

[](#foreword)

### Installation

[](#installation)

This library requires PHP 8.4 or later. It has **no runtime dependencies** -- not even an escaper, by design; see [Escaping Output](./docs/escaping.md).

It is installable and autoloadable via Composer as [aura/view](https://packagist.org/packages/aura/view).

Alternatively, [download a release](https://github.com/auraphp/Aura.View/releases) or clone this repository, then require or include its *autoload.php* file.

Upgrading from 2.x? See [Upgrading from 2.x](./docs/upgrading.md).

### Quality

[](#quality)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/05c4729798b16d19f69359f0d4d8a95f084253b9cdfd95c488f0d7397ec23da6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e566965772f6261646765732f7175616c6974792d73636f72652e706e673f623d362e78)](https://scrutinizer-ci.com/g/auraphp/Aura.View/)[![codecov](https://camo.githubusercontent.com/1419c5e77d2d4c8508c6d500e2875494d96c734f9ba37f12cd788c03e5c994a8/68747470733a2f2f636f6465636f762e696f2f67682f617572617068702f417572612e566965772f6272616e63682f362e782f67726170682f62616467652e7376673f746f6b656e3d554153446f754c787963)](https://codecov.io/gh/auraphp/Aura.View)[![Continuous Integration](https://github.com/auraphp/Aura.View/actions/workflows/continuous-integration.yml/badge.svg?branch=6.x)](https://github.com/auraphp/Aura.View/actions/workflows/continuous-integration.yml)

To run the unit tests at the command line, issue `composer install` and then `vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`.

Static analysis is via PHPStan; `composer phpstan` runs the suite's level, and `src/` is clean at level 9.

This library attempts to comply with [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-12](https://www.php-fig.org/psr/psr-12/), and [PSR-4](https://www.php-fig.org/psr/psr-4/).

### Community

[](#community)

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our [Google Group](http://groups.google.com/group/auraphp), or follow [@auraphp on X](https://x.com/auraphp).

Documentation
-------------

[](#documentation)

This package is fully documented [here](./docs/index.md).

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance62

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~262 days

Recently: every ~907 days

Total

20

Last Release

25d ago

Major Versions

1.2.1 → 2.0.0-beta12014-05-14

1.2.2 → 2.0.02014-08-30

1.x-dev → 2.2.02016-01-21

2.x-dev → 6.x-dev2026-07-23

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

6.x-devPHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

![](https://www.gravatar.com/avatar/29dba0e6add8d89fd3fc6126b213d5d2f57538ea78318963025d6ea98db34161?d=identicon)[harikt](/maintainers/harikt)

---

Top Contributors

[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (72 commits)")[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (4 commits)")[![ammmze](https://avatars.githubusercontent.com/u/203336?v=4)](https://github.com/ammmze "ammmze (2 commits)")[![acidvertigo](https://avatars.githubusercontent.com/u/809397?v=4)](https://github.com/acidvertigo "acidvertigo (1 commits)")[![jimbojsb](https://avatars.githubusercontent.com/u/107836?v=4)](https://github.com/jimbojsb "jimbojsb (1 commits)")

---

Tags

aurapartialsphptemplateviewtemplateescaperviewEscapeescapingtemplate viewtwo step viewtwostep view

### Embed Badge

![Health badge](/badges/aura-view/health.svg)

```
[![Health](https://phpackages.com/badges/aura-view/health.svg)](https://phpackages.com/packages/aura-view)
```

###  Alternatives

[qiq/qiq

Provides a TemplateView implementations using PHP itself as the templating language, and an optional lightweight template markup.

28164.9k5](/packages/qiq-qiq)[latte/latte

☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites. Introduces context-sensitive escaping.

1.3k16.3M823](/packages/latte-latte)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

82910.1M126](/packages/eftec-bladeone)[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8641.3M116](/packages/jenssegers-blade)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

23999.6k](/packages/anourvalar-office)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87410.8k](/packages/ytake-laravel-smarty)

PHPackages © 2026

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