PHPackages                             wcadena/laravel-string-blade-compiler - 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. wcadena/laravel-string-blade-compiler

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

wcadena/laravel-string-blade-compiler
=====================================

Render Blade templates from a string

1.3.2(7y ago)051212MITPHPPHP &gt;=7

Since May 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wcadena/laravel-string-blade-compiler)[ Packagist](https://packagist.org/packages/wcadena/laravel-string-blade-compiler)[ RSS](/packages/wcadena-laravel-string-blade-compiler/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (7)Used By (2)

String Blade Compiler (Laravel 5.8)
-----------------------------------

[](#string-blade-compiler-laravel-58)

Originally forked from [Flynsarmy/laravel-db-blade-compiler](https://github.com/Flynsarmy/laravel-db-blade-compiler)y Originally forked from [bilaliqbalr/laravel-string-blade-compiler](https://github.com/bilaliqbalr/laravel-string-blade-compiler)

### Render Blade templates from a string

[](#render-blade-templates-from-a-string)

This package generates and returns a compiled view from a provided string

### Installation (Laravel 5.4.x)

[](#installation-laravel-54x)

Require this package in your composer.json and run composer update (or run `composer require wcadena/string-blade-compiler:1.*` directly):

```
"wcadena/laravel-string-blade-compiler": "1.*"

```

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

```
Wcadena\StringBladeCompiler\StringBladeCompilerServiceProvider::class,

```

and the Facade to the aliases array in the same file

```
'StringView'          => Wcadena\StringBladeCompiler\Facades\StringView::class,

```

You have to also publish the config-file

```
php artisan vendor:publish

```

### Usage

[](#usage)

This package offers a `StringView` facade with the same syntax as `View` but accepts a string instead of path to view.

```
return StringView::make('@if ($foo == "Bar") foo is Bar @else foo is not Bar @endif')->with(['foo' => 'Bar'])->render();

```

### License

[](#license)

string-blade-compiler is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~194 days

Recently: every ~242 days

Total

6

Last Release

2679d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.0

1.3.1PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/9373204d63f6156a5036ac363c397a531fbbbd65145eb3e108355573ea83711b?d=identicon)[wcadena](/maintainers/wcadena)

---

Top Contributors

[![wcadena](https://avatars.githubusercontent.com/u/11724550?v=4)](https://github.com/wcadena "wcadena (24 commits)")[![digivo](https://avatars.githubusercontent.com/u/13644788?v=4)](https://github.com/digivo "digivo (9 commits)")[![bilaliqbalr](https://avatars.githubusercontent.com/u/4525426?v=4)](https://github.com/bilaliqbalr "bilaliqbalr (5 commits)")[![mitchellklijs](https://avatars.githubusercontent.com/u/3056552?v=4)](https://github.com/mitchellklijs "mitchellklijs (1 commits)")[![victorboissiere](https://avatars.githubusercontent.com/u/4125799?v=4)](https://github.com/victorboissiere "victorboissiere (1 commits)")

---

Tags

laravellaravel5-7laravel57string-blade-compiler

### Embed Badge

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

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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