PHPackages                             matacms/matacms-content-block - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matacms/matacms-content-block

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

matacms/matacms-content-block
=============================

Manages blocks of HTML code for MATACMS

1.0.4.5-alpha(10y ago)02.2k[1 issues](https://github.com/qi-interactive/matacms-content-block/issues)MITPHP

Since May 1Pushed 10y ago4 watchersCompare

[ Source](https://github.com/qi-interactive/matacms-content-block)[ Packagist](https://packagist.org/packages/matacms/matacms-content-block)[ RSS](/packages/matacms-matacms-content-block/feed)WikiDiscussions development Synced today

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

MATA CMS Content Block
======================

[](#mata-cms-content-block)

[![MATA CMS Module](https://camo.githubusercontent.com/c0401b91459d20973612c632a7f5e84f9cf5f5f7cebec1d6c200c7e26dc93cd7/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f71692d696e7465726163746976652f6173736574732f6d6174612d636d732f676561722d6d6174612d6c6f676f25343032782e706e67)](https://camo.githubusercontent.com/c0401b91459d20973612c632a7f5e84f9cf5f5f7cebec1d6c200c7e26dc93cd7/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f71692d696e7465726163746976652f6173736574732f6d6174612d636d732f676561722d6d6174612d6c6f676f25343032782e706e67)

Content Block module allows adding blocks of HTML code into a web page.

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

[](#installation)

- Add the module using composer:

```
"matacms/matacms-content-block": "~1.0.0"
```

- Run migrations

```
php yii migrate/up --migrationPath=@vendor/matacms/matacms-content-block/migrations

```

Client
------

[](#client)

Content Block Client extends [`matacms\clients`](https://github.com/qi-interactive/matacms-base/blob/development/clients/SimpleClient.php).

In addition, it exposes the following methods:

```
public function findByRegion($region) {}
```

Returns ContentBlock entity with specified Region.

```
public function getText($region) {}
```

Returns ContentBlock::Text for a given region. If the model is not found, and ContentBlockClient::safeMode is set to false an exception will be thrown. Otherwise an 'HttpException' will be thrown.

```
public function renderText($region) {}
```

Echoes the result of ContentBlockClient::renderText($region).

```
public function renderTextWithoutOuterParagraph($region) {}
```

Echoes the result of ContentBlockClient::renderText($region). It also removes the outer paragraph of tags which are usually added by Imperavi Redactor.

Changelog
---------

[](#changelog)

1.0.4.5-alpha, May 3, 2015
--------------------------

[](#1045-alpha-may-3-2015)

- Added filterableAttributes() to ContentBlock model (for search functionality)

1.0.4.4-alpha, October 8, 2015
------------------------------

[](#1044-alpha-october-8-2015)

- Added missing Language field

1.0.4.3-alpha, September 21, 2015
---------------------------------

[](#1043-alpha-september-21-2015)

- Updated migration for matacms-language support

1.0.4.2-alpha, September 21, 2015
---------------------------------

[](#1042-alpha-september-21-2015)

- Updated migration for matacms-language support

1.0.4.1-alpha, September 18, 2015
---------------------------------

[](#1041-alpha-september-18-2015)

- Added migration for matacms-language support

1.0.4-alpha, June 11, 2015
--------------------------

[](#104-alpha-june-11-2015)

- Removed create and delete buttons from Production (!YII\_DEBUG)

1.0.3-alpha, June 4, 2015
-------------------------

[](#103-alpha-june-4-2015)

- Updated composer.json

1.0.2-alpha, May 21, 2015
-------------------------

[](#102-alpha-may-21-2015)

- Updated Content Block Client
- Updated installation notes

1.0.1-alpha, May 18, 2015
-------------------------

[](#101-alpha-may-18-2015)

- Added standard mata headers in PHP files
- Updated code style

1.0.0-alpha, May 1, 2015
------------------------

[](#100-alpha-may-1-2015)

- Initial release.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Recently: every ~57 days

Total

10

Last Release

3714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/894e97cca05581e84231d47aa964c3cbca2cc71d97a8aa2c77f7c74983812b1e?d=identicon)[qiinteractive](/maintainers/qiinteractive)

---

Top Contributors

[![wichura](https://avatars.githubusercontent.com/u/878562?v=4)](https://github.com/wichura "wichura (41 commits)")

---

Tags

htmlcmsyii2mata cmswysiwygmata-content-block

### Embed Badge

![Health badge](/badges/matacms-matacms-content-block/health.svg)

```
[![Health](https://phpackages.com/badges/matacms-matacms-content-block/health.svg)](https://phpackages.com/packages/matacms-matacms-content-block)
```

###  Alternatives

[craftcms/webhooks

Post webhooks when events are triggered in Craft CMS.

84139.0k1](/packages/craftcms-webhooks)[craftcms/ckeditor

Edit rich text content in Craft CMS using CKEditor.

47406.8k76](/packages/craftcms-ckeditor)[bizley/contenttools

ContentTools editor implementation for Yii 2.

8017.3k](/packages/bizley-contenttools)[craftcms/anchors

Add anchor links to headings in your Craft CMS website content.

4734.0k](/packages/craftcms-anchors)[craftcms/simple-text

This plugin adds a new “Simple Text” field type to Craft, which provides a textarea that’s optimized for entering documentation.

2624.7k](/packages/craftcms-simple-text)

PHPackages © 2026

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