PHPackages                             arsengoian/viper-blade - 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. arsengoian/viper-blade

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

arsengoian/viper-blade
======================

A package enabling the use of Blade templating engine in PHP

02071

Since Jan 2Compare

[ Source](https://github.com/arsengoian/viper-blade)[ Packagist](https://packagist.org/packages/arsengoian/viper-blade)[ RSS](/packages/arsengoian-viper-blade/feed)WikiDiscussions Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (1)

Blade for Viper Framework
=========================

[](#blade-for-viper-framework)

A Blade templating language adaptation for the Viper Framework

For Blade doc, refer to the [official Laravel documentation on Blade](https://laravel.com/docs/5.5/blade)

Usage
-----

[](#usage)

May be used from the controller like this:

```
namespace App\Controllers;

use Viper\Core\Routing\Controller;
use Viper\Core\Routing\Methods\GET;
use Viper\Core\Viewable;
use Blade\View;
use App\Models\Client;

class HomeController extends Controller implements GET
{

    public function get (...$args): ?Viewable
    {
        $clients = Client::all();
        return new BladeView('test', [
            'folks' => $clients,
        ]);
    }

}
```

### Exception reporting

[](#exception-reporting)

Exceptions may be parsed nicely in a custom view. By default, the `error.blade.php` is invoked with `$e` variable for exception

use `\Blade\View::bindErrorView()` for configuration

### Setup

[](#setup)

Extra variables and error preferences may be passed from a filter ([official doc on filters](https://github.com/arsengoian/viper-framework#filters)):

```
namespace App\Filters;

use Blade\View;
use Viper\Core\Filter;

class BladeFilter extends Filter
{

    public function proceed ()
    {
        // Set up custom error reporting
        if (!Config::get('DEBUG'))
            View::bindErrorView('publicErrorView', 'exception');

        // These variables will be visible in all the views
        View::propagateVars([
            'myCustomVar' => 42,
            'clientHandler' => Config::get('Clients.HANDLER'),
        ]);
    }
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

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/6d8ab20cc931cdd85e854b1c05e2064aaf36d9ca92d300db89c06a0f89f1c6ac?d=identicon)[arsengoian](/maintainers/arsengoian)

---

Top Contributors

[![arsengoian](https://avatars.githubusercontent.com/u/18646968?v=4)](https://github.com/arsengoian "arsengoian (2 commits)")

### Embed Badge

![Health badge](/badges/arsengoian-viper-blade/health.svg)

```
[![Health](https://phpackages.com/badges/arsengoian-viper-blade/health.svg)](https://phpackages.com/packages/arsengoian-viper-blade)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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