PHPackages                             wrux/blocky - 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. wrux/blocky

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

wrux/blocky
===========

Map a matrix field into an array of blocks to render in twig.

1.1.2(2y ago)26494MITPHPCI failing

Since Jun 3Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/wrux/blocky)[ Packagist](https://packagist.org/packages/wrux/blocky)[ RSS](/packages/wrux-blocky/feed)WikiDiscussions main Synced today

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

[![Craft Class Variance Authority](resources/img/blocky.png)](resources/img/blocky.png)

Blocky Plugin for Craft CMS 3.x
===============================

[](#blocky-plugin-for-craft-cms-3x)

Utility plugin for Craft CMS to map Matrix fields.

Blocky handles the logic of parsing your Matrix blocks so you can create cleaner Twig templates.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
    cd /path/to/project
    ```
2. Then tell Composer to load the plugin:

    ```
    composer require wrux/blocky
    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Blocky.

Configuring the Block Parser
----------------------------

[](#configuring-the-block-parser)

1. Create `config/blocks.php` inside your Craft project:

    ```
