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 2w ago

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 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 58.5% 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

2729d ago

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

1.3.1PHP &gt;=7

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11724550?v=4)[Wágner Alexánder Cadena Lastra -&gt; https://github.com/wcadenacasabaca/](/maintainers/wcadena)[@wcadena](https://github.com/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)")[![viktor42b](https://avatars.githubusercontent.com/u/4125799?v=4)](https://github.com/viktor42b "viktor42b (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

[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)
