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)83624PHP

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 3w 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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

1155d 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

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

291.8k](/packages/webkinder-sproutset)[awkwardideas/switchblade

Extended blade directives for laravel

102.1k](/packages/awkwardideas-switchblade)

PHPackages © 2026

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