torann/cells
Larablocks Analysis
torann/cells works with Laravel 4 (latest release 0.1.1, Jun 2, 2014), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4, past end of life
- No release in the last 12 months (last: Jun 2, 2014)
- 0 downloads a month (needs 10,000)
- 10 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 2, 2014.
- No releases in the last 12 months.
- First released: Oct 24, 2013.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 5, 2026.
| Install | |
|---|---|
composer require torann/cells |
|
| Latest Version: | 0.1.1 |
| PHP: | >=5.3.0 |
| Laravel: | 4 |
| License: | BSD 2-Clause |
| Last Updated: | Jun 3, 2014 |
| Links: | GitHub · Packagist |
Cells for Laravel 4 - Beta
Cells are view components for Laravel 4. They are mini-controllers with their own MVC stack, can invoke logic and render views.
Installation
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
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
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
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.
Alternatives to torann/cells
Theme will help you organize your themes inside Laravel projects easily and main...
Theme will help you organize your themes inside Laravel projects easily and main...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.1.1 | >=5.3.0 | ~4.1 | BSD 2-Clause | |
| 0.1.0 | >=5.3.0 | 4.0.x | BSD 2-Clause |

