PHPackages                             felixdorn/laravel-render-blade-string - 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. felixdorn/laravel-render-blade-string

ActiveLibrary

felixdorn/laravel-render-blade-string
=====================================

A function that can render Blade on the fly.

1.1.1(4y ago)51.4k1MITPHPPHP ^8

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/felixdorn/laravel-render-blade-string)[ Packagist](https://packagist.org/packages/felixdorn/laravel-render-blade-string)[ RSS](/packages/felixdorn-laravel-render-blade-string/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (1)

**DISCLAIMER: This package won't support Laravel 9.x and future versions as this is now part of the framework, see `Blade::render`.**

Render Blade on the fly.
========================

[](#render-blade-on-the-fly)

[![Tests](https://github.com/felixdorn/laravel-render-blade-string/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/felixdorn/laravel-render-blade-string/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/laravel-render-blade-string/actions/workflows/formats.yml/badge.svg?branch=master)](https://github.com/felixdorn/laravel-render-blade-string/actions/workflows/formats.yml)[![Version](https://camo.githubusercontent.com/6701437183583b885e17848650ea951e66647bae16b5367ad167c14e5b539783/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f6c61726176656c2d72656e6465722d626c6164652d737472696e672f76657273696f6e)](//packagist.org/packages/felixdorn/laravel-render-blade-string)[![Total Downloads](https://camo.githubusercontent.com/295d3d506624a47bfad93f59d7ec31b6b18403bf3ea4282080a7092a15805f9b/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f6c61726176656c2d72656e6465722d626c6164652d737472696e672f646f776e6c6f616473)](//packagist.org/packages/felixdorn/laravel-render-blade-string)[![License](https://camo.githubusercontent.com/31049989d5775b7a0a1a24330d1fb000b5b9c59671b0f3c3694a2b8903fb1e0c/68747470733a2f2f706f7365722e707567782e6f72672f66656c6978646f726e2f6c61726176656c2d72656e6465722d626c6164652d737472696e672f6c6963656e7365)](//packagist.org/packages/felixdorn/laravel-render-blade-string)

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

[](#installation)

> Requires [PHP 8.0.0+](https://php.net/releases)

You can install the package via composer:

```
composer require felixdorn/laravel-render-blade-string
```

Disclaimer
----------

[](#disclaimer)

This function evaluates PHP code (using `eval()`). This should not be a security issue unless you write the following code.

```
__renderBlade($request->get('blade'));
```

The double underscores in the function name are here to remind you that this a somewhat **dirty hack** and you should try to avoid doing this as much as possible.

Usage
-----

[](#usage)

```
__renderBlade('@if ($something) Yo! @endif', [
    'something' => true
]);
```

Testing
-------

[](#testing)

```
composer test
```

**Laravel Render Blade String** was created by **[Félix Dorn](https://twitter.com/afelixdorn)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Every ~129 days

Total

3

Last Release

1570d ago

### Community

Maintainers

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

---

Top Contributors

[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (27 commits)")

---

Tags

package

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/felixdorn-laravel-render-blade-string/health.svg)

```
[![Health](https://phpackages.com/badges/felixdorn-laravel-render-blade-string/health.svg)](https://phpackages.com/packages/felixdorn-laravel-render-blade-string)
```

PHPackages © 2026

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