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

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

ngangchill/blade
================

This is a standalone package for laravel blade with some extra function such as partial, some usefull directives.

1.0.0(9y ago)033PHPPHP &gt;=5.5.9

Since Dec 10Pushed 9y ago1 watchersCompare

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

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

Ngangchill\\Blade
-----------------

[](#ngangchillblade)

This is a standalone package for laravel blade with some extra function such as partial, some usefull directives &amp; extensions.Thanks for using.

### use:

[](#use)

```
$pathsToTemplates = __DIR__ . '/views';
$pathToCompiledTemplates = __DIR__ . '/compiled';

//fire laravel blade statically
Ngangchill\Blade\Blade::fire()->setPaths($pathsToTemplates, $pathToCompiledTemplates);

// or
$app = new Ngangchill\Blade\Blade();
$app->setPaths($pathsToTemplates, $pathToCompiledTemplates);

```

ALL DONE done... lets play with laravel **Blade Templates**. Now you can use every Blade functions as documented in laravel bladetemplate docs.
-----------------------------------------------------------------------------------------------------------------------------------------------

[](#all-done-done-lets-play-with-laravel-blade-templates-now-you-can-use-every-blade-functions-as-documented-in-laravel-bladetemplate-docs)

Example:
--------

[](#example)

```
$name = 'Skyfall';

echo View::make('index', ['name' => $name])->render();

// Add a location to the array of view locations.
View::addLocation($newPath);

// lets register a new directives
Blade::directive('hellow', function ($name) {
    return "";
});

// For more info read laravel Blade Template Docs

```

KEEP IN MIND: *Special situation* \[if you want to use Illuminate\\Support\\Facades\\Blade \]
=============================================================================================

[](#keep-in-mind-special-situation-if-you-want-to-use-illuminatesupportfacadesblade-)

If you initiate blade class Ngangchill\\Blade\\Blade::fire()-&gt;setPaths('viewPath', 'compiledPath') than nothing to worry. But if you use an use statment for Ngangchill\\Blade\\Blade class Than you have be carefull to avoid unwanted error by setting an alias for Ngangchill\\Blade\\Blade class or adding a trilling slash '' before Illuminate\\Support\\Facades\\Blade.See the example below

To use laravel blade facades call it as -

```
use Ngangchill\Blade\Blade;

//fire laravel blade
Blade::fire()->setPaths($pathsToTemplates, $pathToCompiledTemplates);

//Now call **Illuminate\Support\Facades\Blade** as \Blade::()....
\Blade::directive('datetime', function ($expression) {
    return "";
});

```

or

Set an alias:

```
use Ngangchill\Blade\Blade as ViewFactory;
//then
ViewFactory::fire()->setPaths(......);
Blade::directive('datetime', function ($expression) {
    return "";
});

```

Otherwise it may throughs unwanted error.

[Read More on laravel.com](https://laravel.com/docs/5.3/blade)
--------------------------------------------------------------

[](#read-more-on-laravelcom)

Extra features:
---------------

[](#extra-features)

Creating a Partial
------------------

[](#creating-a-partial)

We use the `@render('block-to-render')` directive to render a block of content that was provided via the respective `@block` directive. Note that we can also provide a default value.

```

        @render('title', 'Default Title')

        @render('body', 'Default Body')

```

View a Partial
--------------

[](#view-a-partial)

Partials start with the `@partial('path.to.view')` directive, which accepts the view you want the partial to extend from, and end with the `@endpartial` directive.

```
@partial('partials.panel')
    @block('title', 'This is the panel title')

    @block('body')
        This is the panel body.
    @endblock
@endpartial
```

Blocks within partials behave the same way as sections within templates. They capture a piece of data that will be rendered into the extended view.

Special thanks to **crhayes**
=============================

[](#special-thanks-to-crhayes)

Available Directives:
---------------------

[](#available-directives)

```
@explode()
@implode()
@dd()
@dump()
@datetime()
@date()
@time()
@use()
@namespace()
@fa()

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5406931fdab55e965971cd4c25d7781f73e9cc8f1a35d55225ba7745ac5af97?d=identicon)[ngangchill](/maintainers/ngangchill)

---

Top Contributors

[![ngangchill](https://avatars.githubusercontent.com/u/4242225?v=4)](https://github.com/ngangchill "ngangchill (29 commits)")

---

Tags

phpbladelaravel-blade

### Embed Badge

![Health badge](/badges/ngangchill-blade/health.svg)

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[victorybiz/laravel-simple-select

Laravel Simple Select inputs component for Blade and Livewire.

13721.1k](/packages/victorybiz-laravel-simple-select)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1018.1k5](/packages/eftec-bladeonehtml)

PHPackages © 2026

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