PHPackages                             lepidosteus/blade - 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. lepidosteus/blade

ActiveLibrary

lepidosteus/blade
=================

Use blade outside laravel, in an easy to use library

19PHP

Since Oct 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lepidosteus/blade)[ Packagist](https://packagist.org/packages/lepidosteus/blade)[ RSS](/packages/lepidosteus-blade/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

blade
=====

[](#blade)

Use blade 8 outside of laravel, in an easy to use library

Supports:

- rendering
    - subviews
    - inheritance / layouts
    - rendering views from string
- customization
    - custom if statements
    - custom directives
    - custom echo handlers
- components
    - registered component
    - namespaced components
    - anonymous components
- mostly everything, really

I created this because:

- I wanted a ready-to-use library rather than snippet of codes getting out of syncs
- I wanted something that fully supported components, including namespaced and anonymous

Most of the original code was from [mattstauffer/Torch](https://github.com/mattstauffer/Torch/blob/master/components/view/index.php), I packaged it in a ready to use library, then added the support for features on top. I couldn't find any License or in-file copyright in their repository but comment and description make it clear it's meant to be used and shared. Original authors remain the full owner of their code, and deserve a million thanks for doing all the hard parts.

The actual rendering is done by Laravel's library under the hood, this library doesn't replicate anything it just created the environnement expected for all things to run smoothly (facades, container, config, ...).

Whatever I added on top is under Public Domain.

usage
-----

[](#usage)

Install with `composer require lepidosteus/blade`

```
