PHPackages                             sergant210/laravel-raw-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. [Templating &amp; Views](/categories/templating)
4. /
5. sergant210/laravel-raw-view

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

sergant210/laravel-raw-view
===========================

It's intended to compile a view from the HTML string 'on the fly'. You don't need to create a view file.

2.0.0(5y ago)4552MITPHPPHP ~7.0CI failing

Since Mar 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sergant210/laravel-raw-view)[ Packagist](https://packagist.org/packages/sergant210/laravel-raw-view)[ Docs](https://github.com/sergant210/laravel-raw-view)[ RSS](/packages/sergant210-laravel-raw-view/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

RawView
=======

[](#rawview)

RawView for Laravel 5.5+ gives an ability to compile a view from the raw HTML code with Blade directives without creating a view file.

Install
-------

[](#install)

Via Composer

```
$ composer require sergant210/laravel-raw-view
```

After that the view\_raw function will be available. It works like the view function but you must specify the HTML code instead of the name of the view.

Usage
-----

[](#usage)

```
class Item
{
	public $tpl = ' {{ $item->name }}';
	...
	public function render()
	{
	    return view_raw($this->tpl, ['item' => $this])->render();
	}
}

// View

@foreach($items as $item)
    {!! $item->render() !!}
@endforeach

```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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 ~918 days

Total

2

Last Release

2100d ago

Major Versions

1.0.0 → 2.0.02020-09-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4679725?v=4)[Sergey Shlokov](/maintainers/sergant210)[@sergant210](https://github.com/sergant210)

---

Top Contributors

[![sergant210](https://avatars.githubusercontent.com/u/4679725?v=4)](https://github.com/sergant210 "sergant210 (9 commits)")

---

Tags

bladelaravelrawviewviewlaravelbladeviewrawview

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergant210-laravel-raw-view/health.svg)

```
[![Health](https://phpackages.com/badges/sergant210-laravel-raw-view/health.svg)](https://phpackages.com/packages/sergant210-laravel-raw-view)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k449.3k30](/packages/tightenco-jigsaw)[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8651.3M114](/packages/jenssegers-blade)[spatie/laravel-blade-comments

Add debug comments to your rendered output

179332.0k](/packages/spatie-laravel-blade-comments)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2453.7k5](/packages/hasinhayder-tyro-login)

PHPackages © 2026

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