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

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

clean/view
==========

0.1.0(10y ago)1130.3k↓25.2%1[1 PRs](https://github.com/clean/view/pulls)3MITPHP

Since Aug 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/clean/view)[ Packagist](https://packagist.org/packages/clean/view)[ RSS](/packages/clean-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (3)

Clean\\View
===========

[](#cleanview)

[![Build Status](https://camo.githubusercontent.com/740d3e9a257ae57bd37377b111b3b7d81dd3e5f8d38683dd74cac290490a7d85/68747470733a2f2f7472617669732d63692e6f72672f636c65616e2f766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clean/view)[![Code Climate](https://camo.githubusercontent.com/7ae270b66b2e4a982561035502f64958c6e29dba7c65abf924500e1cc03543ec/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636c65616e2f766965772f6261646765732f6770612e737667)](https://codeclimate.com/github/clean/view)[![Test Coverage](https://camo.githubusercontent.com/b0d881fb8f92e1b82ebc4d054c4b32ba45af9fb063f40bc1aa04781f87666f52/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636c65616e2f766965772f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/clean/view/coverage)[![Issue Count](https://camo.githubusercontent.com/ec7cbb2890dad353ae5045f61a334c926f0bf9f7e7b39a8d02cfc0f0d135683e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636c65616e2f766965772f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/clean/view)

Provides an implementation of the [TemplateView](http://martinfowler.com/eaaCatalog/templateView.html) and [TwoStepView](http://martinfowler.com/eaaCatalog/twoStepView.html) patterns, with support for helpers.

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

[](#installation)

via Composer

```
require: {
  "clean/view": "dev-master"
}
```

Usage
-----

[](#usage)

```
$view = new View('template.phtml', ['placeholder' => 'value', ...]);
$view->setParent(new View('layout.phtml', [...]));
echo $view;
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

3941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21d3fe3ceb74869ffa1dd2ca9aac14d6df3e9e4209cfa8ed9c602875d590959b?d=identicon)[romannowicki](/maintainers/romannowicki)

---

Top Contributors

[![perform-group](https://avatars.githubusercontent.com/u/14273063?v=4)](https://github.com/perform-group "perform-group (3 commits)")[![peengle](https://avatars.githubusercontent.com/u/305179?v=4)](https://github.com/peengle "peengle (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[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)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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