PHPackages                             torann/cells - 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. torann/cells

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

torann/cells
============

Cells are view components for Laravel 4. They are mini-controllers with their own MVC stack, can invoke logic and render views.

0.1.1(12y ago)107672BSD 2-ClausePHPPHP &gt;=5.3.0

Since Oct 24Pushed 12y ago3 watchersCompare

[ Source](https://github.com/Torann/laravel-4-cells)[ Packagist](https://packagist.org/packages/torann/cells)[ RSS](/packages/torann-cells/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Cells for Laravel 4 - Beta
==========================

[](#cells-for-laravel-4---beta)

[![Latest Stable Version](https://camo.githubusercontent.com/daef72117162b22a1a2a44c8ee52fc10117690f9093430ff8476741be9952314/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f63656c6c732f762f737461626c652e706e67)](https://packagist.org/packages/torann/cells) [![Total Downloads](https://camo.githubusercontent.com/5a2cdee028c31a3cb7ce91c32beea3493e779066295c8f75ae2e6bd62dcfa044/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f63656c6c732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/torann/cells)

Cells are view components for Laravel 4. They are mini-controllers with their own MVC stack, can invoke logic and render views.

---

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

[](#installation)

- [Cells on GitHub](https://github.com/torann/laravel-4-cells)

To get the latest version of Cells simply require it in your `composer.json` file.

```
"torann/cells": "dev-master"

```

You'll then need to run `composer install` to download it and have the autoloader updated.

Once Cells is installed you need to register the service provider with the application. Open up `app/config/app.php` and find the `providers` key.

```
'providers' => array(

    'Torann\Cells\CellsServiceProvider',

)
```

Cells also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `app/config/app.php` file.

```
'aliases' => array(

    'Cells' => 'Torann\Cells\Facades\CellsFacade',

)
```

Create configuration file using artisan

```
$ php artisan config:publish torann/cells

```

Creating a cell
---------------

[](#creating-a-cell)

You can create a cell using artisan command:

```
php artisan cells:create demo

```

> The parameter is the cell name.

Now you will see a controller class at `/app/cells/CellDemo.php` and view at `/app/cells/demo/display.blade.php`

Rendering
---------

[](#rendering)

Using the Blade helper

```
@cell('demo', 'display')
```

- The first parameter is the cell name.
- The second parameter is the view type, by default it is "display".

Calling your cell in a view and passing `Demo Cell!` as the label

```
echo Cells::get('demo', 'display', array('label' => 'Demo Cell!'));
```

Caching
-------

[](#caching)

Cells can be cached based on minutes. Simple change the `$cache` variable in the cell controller to the number of minutes the cell should be cached.

```
class CellDemo extends CellBaseController {

    /**
     * Default cache value in minutes.
     *
     * @var string
     */
    public $cache = 60;

}
```

By default caching is disabled in the `local` environment. To enable this change the setting `disable_cache_in_dev` to *false* in the config file.

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

4457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1406755?v=4)[Daniel Stainback](/maintainers/torann)[@Torann](https://github.com/Torann)

---

Top Contributors

[![Torann](https://avatars.githubusercontent.com/u/1406755?v=4)](https://github.com/Torann "Torann (5 commits)")

---

Tags

laravelwidgetlayoutlaravel4cells

### Embed Badge

![Health badge](/badges/torann-cells/health.svg)

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

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5495.1k](/packages/hasinhayder-tyro-dashboard)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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