PHPackages                             kesty/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. kesty/view

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

kesty/view
==========

Laravel View Standalone

v1.0.0(8y ago)110MITPHPPHP &gt;=7.0

Since Mar 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/olubunmitosin/views)[ Packagist](https://packagist.org/packages/kesty/view)[ Docs](https://github.com/olubunmi708/views)[ RSS](/packages/kesty-view/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

The Lara Blade View | Blade Template Outside Laravel
====================================================

[](#the-lara-blade-view--blade-template-outside-laravel)

[![Build Status](https://camo.githubusercontent.com/0b72d7ffb113a725655354c994dfb8a92adcbc53be566598d63d1b0e41945b5c/68747470733a2f2f7472617669732d63692e6f72672f6f6c7562756e6d693730382f76696577732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/olubunmi708/views)[![Latest Stable Version](https://camo.githubusercontent.com/13d454c88e9b907c680c699ce112c3dd3683e8318fd87666d51ddd5ef5c29b91/68747470733a2f2f706f7365722e707567782e6f72672f6b657374792f766965772f762f737461626c65)](https://packagist.org/packages/kesty/view)[![Total Downloads](https://camo.githubusercontent.com/4f099bdf6014c32e3960f2ce8408afcd5c4aca5c431fe051bd7b4aaebdc50fa8/68747470733a2f2f706f7365722e707567782e6f72672f6b657374792f766965772f646f776e6c6f616473)](https://packagist.org/packages/kesty/view)[![Latest Unstable Version](https://camo.githubusercontent.com/ce2eadff304357853dbfa45878122684267a2981f70b9e2c9e3b929f564bf135/68747470733a2f2f706f7365722e707567782e6f72672f6b657374792f766965772f762f756e737461626c65)](https://packagist.org/packages/kesty/view)[![License](https://camo.githubusercontent.com/d087b7b63c527d984e841ea44c0dd7a876ad0e515aee26b597d1b07ab58fcf6f/68747470733a2f2f706f7365722e707567782e6f72672f6b657374792f766965772f6c6963656e7365)](https://packagist.org/packages/kesty/view)

**Laravel Blade Views Standalone**

Okay so by now hopefully you have heard of [Laravel](http://laravel.com/), the PHP framework that just makes things easy. So first things first full credit goes to [Taylor Otwell](https://github.com/taylorotwell) and [Brad Jones](https://github/phpgearbox) for the Blade API.

How to Install
--------------

[](#how-to-install)

Installation via composer is easy:

```
composer require kesty/view: dev-master

```

How to Use
----------

[](#how-to-use)

In your *legacy* - non Laravel application. You can use the Laravel Blade API like so:

```
// Make sure you have composer included
require('vendor/autoload.php');

// Create a new View Instance
$views = new Lara\View('/path/to/my/views');

// Next you will probably want to make the view object global.
$views->globalise();
```

And thats it, now you can use code like the following:

```
echo View::make('greeting', array('name' => 'Mike'));
```

Where the view might look like:

```

        Hello,

```

For more info on the View API it's self see:

View Scope
----------

[](#view-scope)

When you run `$views->globalise();` it checks to see if the class `View`exists globally. If not it use the function `class_alias` to alias it's self in much the same a Laravel Application does.

This enables us to use the `View` API we are familar with.

View Include Path:
------------------

[](#view-include-path)

You can provide an array of paths, instead of just one path. So in effect you can have a View Include Path. Very handy for setting up a HMVC type system. Here is an example:

```
$views = new Lara\View(['/views/specific', '/views/generic']);
```

So now for the why?
-------------------

[](#so-now-for-the-why)

While laravel is so awesomely cool and great. If you want to pull a feature out and use it in another project it can become difficult. Firstly you have to have an innate understanding of the [IoC Container](http://laravel.com/docs/ioc).

You then find that this class needs that class which then requires some other config variable that is normally present in the IoC when run inside a normal Laravel App but in your case you haven't defined it and don't really want to define that value because it makes no sense in your lets say *legacy*application.

Perfect example is when I tried to pull the session API out to use in wordpress. It wanted to know about a `booted` method, which I think comes from `Illuminate\Foundation\Application`. At this point in time I already had to add various other things into the IoC to make it happy and it was the last straw that broke the camels back, I chucked a coders tantrum, walked to the fridge, grabbed another Redbull and sat back down with a new approach.

The result is this project.

---

Original Code by Brad Jones - Maintained and Updated by Olubunmi Tosin -

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

2971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7978a46601b22c02edd1e108652d0c4d81943d18a5769e9d97564d23294ca0ee?d=identicon)[olubunmi708](/maintainers/olubunmi708)

---

Tags

laravelbladestandaloneviews

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kesty-view/health.svg)

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

###  Alternatives

[philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.

354673.2k59](/packages/philo-laravel-blade)

PHPackages © 2026

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