PHPackages                             aidid/ci\_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. aidid/ci\_blade

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

aidid/ci\_blade
===============

Blade View for Codeigniter 3

v1(3y ago)8349↓100%4PHP

Since Apr 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aididalam/Codeigniter-Blade-Template)[ Packagist](https://packagist.org/packages/aidid/ci_blade)[ Docs](https://github.com/aididalam/Codeigniter-Blade-Template)[ RSS](/packages/aidid-ci-blade/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Blade Template in Codeigniter
=============================

[](#blade-template-in-codeigniter)

This can render .blade.php in Codeinteger and can convert Strings into blade templating system.

- This library follows HMVC
- This has predefine cache for rendering files quickly
- It supports: > comments, echos, forelse, empty, includes, layouts, section\_start, section\_end, section, sectionend, extends, yields, yield\_sections, extensions, else, unless, endunless, endforelse, structure\_openings, structure\_closings

### Installation

[](#installation)

```
composer require aidid/ci_blade

```

### Initialization

[](#initialization)

```
use \Aidid\BladeView\BladeView;
	public $bladeview;
	public function __construct() {
		parent::__construct();
		$this->bladeview = new BladeView();
	}
```

### Methods:

[](#methods)

```
$this->bladeview->set('name', 'Jhon')
				->set('car_array', array("BMW", "FORD", "Mazda"))
				->append('car_array', "Volvo")
				->set_data(array('age' => 22, 'gender' => 'male'))
				->render('test', array('message' => 'Hello World!'));
```

---

### Rendaring \*blade.php

[](#rendaring-bladephp)

```
$data = array(
	"foo" => "Hello",
	"bar" => "World",
);
$this->bladeview->render("test", $data);  //File extension *blade.php
```

---

### Rendaring String

[](#rendaring-string)

```
$string = "{{\$foo}} {{\$bar}}";
$data = array(
	"foo" => "Hello",
	"bar" => "World",
);
$this->bladeview->render($string, $data, false); //3rd parameter false is important
```

---

### Making blade template

[](#making--blade-template)

```

    @include('template-example/header')

    @yield('content')

    @include('template-example/footer')

```

```
@extends('template-example/baseview')
@section('content')
    i am the home page
@endsection
```

---

**You can also save the blade output in a variable**

```
$View_blade_output=$this->bladeview->render("test", $data,true,true);
$String_blade_output=$this->bladeview->render($string, $data,flase,true);
```

---

### Example

[](#example)

```
use \Aidid\BladeView\BladeView;

class Example extends CI_Controller {
	public $bladeview;
	public function __construct() {
		parent::__construct();
		$this->bladeview = new BladeView();
	}

	public function index() {
		$this->bladeview->render('templated-view'); //check file under view folder
	}

	public function viewWithVariable() {
		$foo = "Foo";
		$bar = "Bar";
		$this->bladeview->render('view-with-variable', compact('foo', 'bar'));
	}

	public function directRender() {
		$string = "{{\$foo}} {{\$bar}}";
		$data = array(
			"foo" => "Hello",
			"bar" => "World",
		);
		$this->bladeview->render($string, $data, false); //3rd parameter false is important
	}
}
```

Check this [controller](https://github.com/aididalam/Codeigniter-Blade-Template/blob/main/application/controllers/Example.php "controller") for better understand of BladeView's function. Check this [View Folder](https://github.com/aididalam/Codeigniter-Blade-Template/tree/main/application/views "View Folder") for better understand of view structure.

For more details please follow laravel blade documentaion.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

1110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f2ff4a88df7a2ccfe2dc2b916d486756ab5c9eb3d83d2afdc5c5f0e87e12b8b?d=identicon)[aididalam](/maintainers/aididalam)

---

Top Contributors

[![aididalam](https://avatars.githubusercontent.com/u/6722334?v=4)](https://github.com/aididalam "aididalam (20 commits)")

---

Tags

bladebladelibrarybladeviewci-bladecodeignitercodeigniter-bladecodeigniterbladetemplatedb-bladestring-blade-compiler

### Embed Badge

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

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M290](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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