PHPackages                             ciricihq/blocks - 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. ciricihq/blocks

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

ciricihq/blocks
===============

Blocks plugin for CakePHP

0.6.1(9y ago)32.7kGPL-3.0PHPPHP &gt;=5.4.19

Since Mar 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ciricihq/cake-blocks)[ Packagist](https://packagist.org/packages/ciricihq/blocks)[ RSS](/packages/ciricihq-blocks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (7)Used By (0)

CakePHP Blocks Plugin
=====================

[](#cakephp-blocks-plugin)

[![Build Status](https://camo.githubusercontent.com/0be2375b7c91802636fa732980f665b86ae3dfcbc9291a639cc6fdf07208b666/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63697269636968712f63616b652d626c6f636b732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ciricihq/cake-blocks)[![Coverage](https://camo.githubusercontent.com/3c04891e66c776233290cc2f45d728254663787cda36fe64daecda5fccc8043b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f63697269636968712f63616b652d626c6f636b732e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/ciricihq/cake-blocks)[![Total Downloads](https://camo.githubusercontent.com/65d2c6f6bb6cd47159be3f0b008687fe8523d142cfe93d4e3836522273cab359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63697269636968712f626c6f636b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ciricihq/blocks)[![License](https://camo.githubusercontent.com/fff3ac565eedd74a5d697c8fb38413a47db5c3b2e669325a0c615ca30505dd88/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63697269636968712f63616b652d626c6f636b732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A really simple plugin that allows you to manage and show small content blocks.

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require ciricihq/blocks

```

You then need to load the plugin. You can use the shell command:

```
bin/cake plugin load Cirici/Blocks

```

or by manually adding statement shown below to your app's `config/bootstrap.php`:

```
Plugin::load('Cirici/Blocks');
```

Usage
-----

[](#usage)

There's a Trait that does all the job, and we've created a `BlockHelper` and a `BlockComponent` so you can use them easily on your CakePHP app.

To start using them, just load whatever class you want.

For the `BlockHelper`, on your `AppView`'s initialize method, add:

```
// src/View/AppView.php
public function initialize()
{
    $this->loadHelper('Cirici/Blocks.Block');
}
```

For the `BlockComponent`, on your `AppController`'s initialize:

```
// src/Controller/AppController.php
public function initialize()
{
    $this->loadComponent('Cirici/Blocks.Block');
}
```

### Methods

[](#methods)

Right now there are just two methods available (as said, this plugin is really simple):

- `get`: retrieves the entire Block entity by its slug.
- `getContents`: just returns the Block's `content` field contents.

Patches &amp; Features
----------------------

[](#patches--features)

- Fork
- Mod, fix
- Test - this is important, so it's not unintentionally broken
- Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
- Pull request - bonus point for topic branches

Bugs &amp; Feedback
-------------------

[](#bugs--feedback)

License
-------

[](#license)

Copyright (c) 2016, [Cirici New Media](https://cirici.com) and licensed under [GNU GPL3 license](LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3599d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cbcbe685af90849bdd806d22ba8c315093bdeb6b2c46c874108b69f81c23038?d=identicon)[gtrias](/maintainers/gtrias)

![](https://www.gravatar.com/avatar/d8f46469b5c3f5f745308d4edb9c55afbd160e0193da99e903365ea82b749cee?d=identicon)[elboletaire](/maintainers/elboletaire)

---

Top Contributors

[![elboletaire](https://avatars.githubusercontent.com/u/153305?v=4)](https://github.com/elboletaire "elboletaire (21 commits)")

---

Tags

cake-plugincakephppluginplugincakephpview

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ciricihq-blocks/health.svg)

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

###  Alternatives

[friendsofcake/cakephp-csvview

A CSV View class for CakePHP

1762.5M3](/packages/friendsofcake-cakephp-csvview)[dereuromark/cakephp-ajax

A CakePHP plugin that makes working with AJAX a piece of cake.

55255.9k1](/packages/dereuromark-cakephp-ajax)[wyrihaximus/twig-view

Twig powered View for CakePHP

804.7M1](/packages/wyrihaximus-twig-view)[dereuromark/cakephp-feed

A CakePHP plugin containing a RssView to generate RSS feeds.

1353.7k1](/packages/dereuromark-cakephp-feed)[dereuromark/cakephp-meta

A CakePHP plugin for SEO meta tags, OpenGraph and Twitter Cards

1012.9k1](/packages/dereuromark-cakephp-meta)[backstageel/cakephp-gentelella-theme

CakePHP 3.x Gentelella Theme.

447.8k1](/packages/backstageel-cakephp-gentelella-theme)

PHPackages © 2026

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