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

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

leunggamciu/blade
=================

A view package extracted from laravel that does not depend on laravel

01PHP

Since Jul 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/leunggamciu/blade)[ Packagist](https://packagist.org/packages/leunggamciu/blade)[ RSS](/packages/leunggamciu-blade/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Blade [![Build Status](https://camo.githubusercontent.com/6e2357a4eb3fdfdbb542cab594248c48b51982ce9b6fcc8a7a649e9b46e11e84/68747470733a2f2f7472617669732d63692e6f72672f6c65756e6767616d6369752f626c6164652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leunggamciu/blade)
========================================================================================================================================================================================================================================================================================

[](#blade-)

#### Introduction

[](#introduction)

Blade is a template engine extracted from `illuminate/view`. It drops all laravel related stuff, so that we could use it as a common composer package in many cases.

#### Limitations

[](#limitations)

Since all laravel related stuff was droped, there are a few limitations when compared to the origin:

- no helper directives: `@dd`, `@dump`, `@method`, `@csrf`
- no translation directive: `@lang`
- no authentication directives: `@auth`, `@elseauth`, `@endauth`, `@guest`, `@elseguest`, `@endguest`
- no authorization directives: `@can`, `@elsecan`, `@endcan`, `@cannot`, `@elsecannot`, `@endelsecannot`
- no service injection directive: `@inject`
- no `with` magic like: `withError()`, but `with()` is still available
- no auto dependency injection in class style composer callback, because we drop the IoC container

#### Usage

[](#usage)

```
