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

ActiveLibrary

puff/view
=========

Decoupled view rendering component for Puff Fiber Framework

00PHP

Since Aug 28Pushed yesterdayCompare

[ Source](https://github.com/php-puff/view)[ Packagist](https://packagist.org/packages/puff/view)[ RSS](/packages/puff-view/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Puff View
=========

[](#puff-view)

`puff/view` is the standalone view rendering component for PHP Fiber Framework. It includes a dependency-free native PHP renderer and optional adapters for Twig, Latte, Plates, Mustache, and Blade.

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

[](#installation)

```
composer require puff/view
```

The native PHP renderer requires no template-engine dependency. Install only the adapter used by the application:

```
composer require twig/twig
composer require latte/latte
composer require league/plates
composer require mustache/mustache
composer require eftec/bladeone
```

Standalone usage
----------------

[](#standalone-usage)

```
use Puff\View\Renderer\PhpRenderer;
use Puff\View\View;

$view = new View(new PhpRenderer(
    paths: [__DIR__ . '/resources/views'],
    cacheDirectory: __DIR__ . '/runtime/views',
));

echo $view->render('home.php', ['title' => 'Puff']);
```

Puff configuration
------------------

[](#puff-configuration)

The package is discovered through Composer and registers both `Puff\View\View`and the `view` container alias automatically. On installation, `config/view.php`is published when the application does not already provide that file.

```
return [
    'view' => [
        'driver' => 'php',
        'paths' => [dirname(__DIR__) . '/resources/views'],
        'cache' => dirname(__DIR__) . '/runtime/views',
        'options' => [],
    ],
];
```

```
$html = app('view')->render('home.php', ['title' => 'Puff']);
```

The helper and Fiber-aware facade are also available:

```
use Puff\View\Facades\View;

$html = view('home.php', ['title' => 'Puff']);
$html = View::render('home.php', ['title' => 'Puff']);
```

Supported drivers are `php`, `twig`, `latte`, `plates`, `mustache`, and `blade`. Template-engine packages are optional and are never loaded by the native renderer.

BladeOne
--------

[](#bladeone)

The `blade` driver uses BladeOne instead of Illuminate View, keeping the adapter small and independent from Laravel's container, events, filesystem, and support packages.

```
return [
    'view' => [
        'driver' => 'blade',
        'paths' => [dirname(__DIR__) . '/resources/views'],
        'cache' => dirname(__DIR__) . '/runtime/views',
        'options' => [
            'mode' => 'auto', // auto, slow, fast, or debug
            'comment_mode' => 0,
        ],
    ],
];
```

Common Blade syntax such as escaped/raw output, conditions, loops, layouts, sections, includes, stacks, and custom directives is supported. BladeOne is not a complete Laravel runtime: dynamic Blade components, `` templates, Laravel extensions, and Laravel service injection are not compatibility targets.

View data must be passed explicitly for every render:

```
echo view('home', ['title' => 'Puff']);
```

Renderers do not retain assigned request data. The discovered `View` service is Fiber-scoped to prevent mutable engine state from leaking between concurrent requests.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![dcto](https://avatars.githubusercontent.com/u/5618679?v=4)](https://github.com/dcto "dcto (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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