PHPackages                             sleeplessnight2/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. sleeplessnight2/slim-blade-view

ActiveLibrary[Framework](/categories/framework)

sleeplessnight2/slim-blade-view
===============================

Fork of rubellum/Slim-Blade-View with Slim Framework v4 and Laravel Blade Templates v8 support

v1.0.0(4y ago)021MITPHP

Since Sep 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sleeplessnight2/slim-blade-view)[ Packagist](https://packagist.org/packages/sleeplessnight2/slim-blade-view)[ RSS](/packages/sleeplessnight2-slim-blade-view/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

slim-blade-wiew
===============

[](#slim-blade-wiew)

> A fork of [rubellum/Slim-Blade-View](https://github.com/rubellum/Slim-Blade-View) with the following changes:
>
> - Slim Framework v4 support
> - Laravel Blade Templates v8

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 sleeplessnight2/slim-blade-view
```

Requires Slim Framework 4 and PHP 7.2.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

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1656d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

frameworkslimbladetemplateviewrenderer

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[slim/php-view

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

2839.6M86](/packages/slim-php-view)[slim/twig-view

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

3707.8M186](/packages/slim-twig-view)[rubellum/slim-blade-view

Slim Framework 3 view helper built on the Blade component

1822.3k2](/packages/rubellum-slim-blade-view)[mathmarques/smarty-view

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

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

Render your Slim 3 application views using Plates template engine.

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

PHPackages © 2026

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