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

ActiveLibrary

flextype-components/view
========================

View Component provides basic methods for displaying PHP views.

v1.1.1(8y ago)0814MITPHPPHP ^7.1.3

Since Apr 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/flextype-components/view)[ Packagist](https://packagist.org/packages/flextype-components/view)[ Docs](https://github.com/flextype-components/view)[ RSS](/packages/flextype-components-view/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (4)Used By (0)

View Component
==============

[](#view-component)

[![version](https://camo.githubusercontent.com/98461fd39a6ad414ce4f6539d637885f04a4138fba65a452d579c06fa284c719/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/98461fd39a6ad414ce4f6539d637885f04a4138fba65a452d579c06fa284c719/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/view/blob/master/LICENSE)

View Component provides basic methods for displaying PHP views.

### Installation

[](#installation)

```
composer require flextype-components/View

```

### Usage

[](#usage)

```
use Flextype\Component\View\View;
```

Create a new view object and render it.

```
// Create new view object
$view = new View('blog/views/backend/index');

// Assign some new variables
$view->assign('msg', 'Some message...');

// Get view
$output = $view->render();

// Display view
echo $output;
```

View factory
Create new view object, assign some variables and displays the rendered view in the browser.

```
View::factory('blog/views/backend/index')
     ->assign('msg', 'Some message...')
     ->display();
```

Include the view file and extracts the view variables before returning the generated output.

```
// Get view
$output = $view->render();

// Display output
echo $output;
```

Displays the rendered view in the browser.

```
$view->display();
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/view/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2931d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/652557f36367ca6ed585663426c237bf39c4e1b6589b28a20937517bf43b0fe4?d=identicon)[Awilum](/maintainers/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (6 commits)")

---

Tags

componentflextypeflextype-componentphpviewphpviews

### Embed Badge

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

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

###  Alternatives

[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

67292.2k12](/packages/phug-phug)[talesoft/tale-jade

A clean, lightweight and easy-to-use templating engine for PHP based on Jade/Pug

8919.3k5](/packages/talesoft-tale-jade)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

319.4k3](/packages/talesoft-tale-pug)[calebdw/laravel-sql-entities

Manage SQL entities in Laravel with ease.

301.3k](/packages/calebdw-laravel-sql-entities)[devanych/view-renderer

Simple PHP View Renderer

153.2k1](/packages/devanych-view-renderer)

PHPackages © 2026

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