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

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

profitcode/yii2-blocks
======================

Yii2 blocks to insert in templates or pages

01241PHP

Since Oct 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cheaterBY/yii2-blocks)[ Packagist](https://packagist.org/packages/profitcode/yii2-blocks)[ RSS](/packages/profitcode-yii2-blocks/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 blocks
===========

[](#yii2-blocks)

Yii2 blocks to insert in templates or pages

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist profitcode/yii2-blocks "*"

```

or add

```
"profitcode/yii2-blocks": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

with block id

```

```

or block system name

```
