PHPackages                             rubellum/slim-blade-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. [Framework](/categories/framework)
4. /
5. rubellum/slim-blade-view

ActiveLibrary[Framework](/categories/framework)

rubellum/slim-blade-view
========================

Slim Framework 3 view helper built on the Blade component

0.1.1(10y ago)1822.4k↓50%7[2 issues](https://github.com/rubellum/Slim-Blade-View/issues)2MITPHP

Since Mar 10Pushed 8y ago4 watchersCompare

[ Source](https://github.com/rubellum/Slim-Blade-View)[ Packagist](https://packagist.org/packages/rubellum/slim-blade-view)[ RSS](/packages/rubellum-slim-blade-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (2)

Slim-Blade-View
===============

[](#slim-blade-view)

[![Build Status](https://camo.githubusercontent.com/c75f90a5eb2069f1c7cd39b8b441db26bd162ba8779042b4a07b2d46eba799a9/68747470733a2f2f7472617669732d63692e6f72672f727562656c6c756d2f536c696d2d426c6164652d566965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rubellum/Slim-Blade-View)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This is a Slim Framework view helper built on top of the Blade component.

You can use this component to create and render templates in your Slim Framework application.

Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
$ composer require rubellum/slim-blade-view
```

Requires Slim Framework 3 and PHP 5.5.0 or newer.

Usage
-----

[](#usage)

```
// Slim Settings
$config = [
    'settings' => [
        'displayErrorDetails' => true, // set to false in production

        // Renderer settings
        'renderer'            => [
            'blade_template_path' => 'path/to/views', // String or array of multiple paths
            'blade_cache_path'    => 'path/to/cache', // Mandatory by default, though could probably turn caching off for development
        ],
    ],
];

// Create Slim app
$app = new \Slim\App($config);

// Fetch DI Container
$container = $app->getContainer();

// Register Blade View helper
$container['view'] = function ($container) {
    return new \Slim\Views\Blade(
        $container['settings']['renderer']['blade_template_path'],
        $container['settings']['renderer']['blade_cache_path']
    );
};

// Define named route
$app->get('/hello/{name}/', function ($request, $response, $args) {
    return $this->view->render($response, 'profile', [
        'name' => $args['name'],
    ]);
})->setName('profile');

// Run app
$app->run();
```

Testing
-------

[](#testing)

```
$ phpunit
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

2

Last Release

3714d ago

### Community

Maintainers

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

---

Top Contributors

[![rubellum](https://avatars.githubusercontent.com/u/99607?v=4)](https://github.com/rubellum "rubellum (10 commits)")[![hiropeke](https://avatars.githubusercontent.com/u/16171793?v=4)](https://github.com/hiropeke "hiropeke (5 commits)")

---

Tags

frameworkslimbladetemplateviewrenderer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rubellum-slim-blade-view/health.svg)

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

###  Alternatives

[slim/php-view

Render PHP view scripts into a PSR-7 Response object.

2739.7M95](/packages/slim-php-view)[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M210](/packages/slim-twig-view)[mathmarques/smarty-view

Slim Framework 4 view helper built on top of the Smarty templating component

24134.7k1](/packages/mathmarques-smarty-view)[projek-xyz/slim-plates

Render your Slim 3 application views using Plates template engine.

2678.2k3](/packages/projek-xyz-slim-plates)

PHPackages © 2026

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