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

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

binjuhor/blade
==============

Laravel blade standalone for generate HTML CSS JS page

v1.0.7(2y ago)0156↓94.1%MITPHP

Since Feb 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/binjuhor/blade)[ Packagist](https://packagist.org/packages/binjuhor/blade)[ RSS](/packages/binjuhor-blade/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

Blade template standalone
-------------------------

[](#blade-template-standalone)

This is a standalone blade template engine for PHP. It is a simple and easy to use template engine that is designed to be used in any PHP project.

Installation
------------

[](#installation)

You can install this package via composer using this command:

```
composer require binjuhor/blade
```

Usage
-----

[](#usage)

```
use Binjuhor\Blade\BladeTemplate;

$template = new BladeTemplate([
    'views' => 'path/to/views/folder',
    'cache' => 'path/to/cache/folder',
    'compileDir' => 'path/to/compiled/folder',
    'url' => 'http://your-app-url.test'
]);

echo $template->render('view', ['data' => 'value']);
```

Read more about the blade template engine [here](https://laravel.com/docs/10.x/blade).

### To compile blade templates

[](#to-compile-blade-templates)

You can use the `compile` method to compile blade templates. For example, if you have a blade template called `home.blade.php` and you want to compile it, you can do so by calling the `compile` method.

```
$template->compile();
```

### Example

[](#example)

```
require_once "vendor/autoload.php";

use Binjuhor\Blade\BladeTemplate as Blade;

$compileDir = __DIR__ . '/compiles';
$viewDirectory = __DIR__ . '/resources/views';
$cacheDirectory = __DIR__ . '/cache';

$page = isset($_REQUEST['f']) ? $_REQUEST['f'] : 'index';

$blade = new Blade([
	'view' => $viewDirectory,
	'cache' => $cacheDirectory,
	'compileDir' => $compileDir,
	'url' => 'http://html-generator.test'
]);

echo $blade->render($page);
$blade->compiles();
```

### Sample project directory structure

[](#sample-project-directory-structure)

```
./index.php
./cache
./compiles
./resources
    /assets
        /css
        /js
        /images
    /views
        about.blade.php
        contact.blade.php
        home.blade.php
        404.blade.php
        /partials
            header.blade.php
            footer.blade.php
            sidebar.blade.php

```

Check out the [example](https://github.com/binjuhor/html-generator) directory for a complete example.

License
-------

[](#license)

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

Credits
-------

[](#credits)

- Blade template engine by Taylor Otwell
- This package is created by [Binjuhor](mailto:kiemhd@outlook.com)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Recently: every ~30 days

Total

8

Last Release

747d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4584599?v=4)[Kiem Hoang](/maintainers/binjuhor)[@binjuhor](https://github.com/binjuhor)

---

Top Contributors

[![binjuhor](https://avatars.githubusercontent.com/u/4584599?v=4)](https://github.com/binjuhor "binjuhor (12 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k453.6k30](/packages/tightenco-jigsaw)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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