PHPackages                             fadriqueclickennet/block-module - 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. fadriqueclickennet/block-module

ActiveLibrary[Templating &amp; Views](/categories/templating)

fadriqueclickennet/block-module
===============================

A module to create small blocks of content to display anywhere on the site.

06PHPCI failing

Since Mar 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/fadriqueclickennet/block-module)[ Packagist](https://packagist.org/packages/fadriqueclickennet/block-module)[ RSS](/packages/fadriqueclickennet-block-module/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Block Module
============

[](#block-module)

[![Latest Version](https://camo.githubusercontent.com/266ffe486fb2cbf713f2755a4d1fa9743de5bcf632967d115d89ecd0039e0925/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617367617264636d732f626c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/asgardcms/block/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Sblock](https://camo.githubusercontent.com/bfde04da595cd46628f94e88a1b220e4b175ea99547a2d9a34e75ec1ad886b41/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617367617264636d732f626c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/asgardcms/block)[![SensioLabs Insight](https://camo.githubusercontent.com/a37734297c2db1119807a32478913994525b507e8883ef75e92b40e308ba6766/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f36353063366432382d653838382d346262632d613537622d6366363834643366653762662e737667)](https://insight.sensiolabs.com/projects/650c6d28-e888-4bbc-a57b-cf684d3fe7bf)[![CodeClimate](https://camo.githubusercontent.com/3b8aecfa2b72c126f6e5a72d6adfa333942de6a8d0490e2130ec382cf7885aac/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f417367617264436d732f426c6f636b2e737667)](https://codeclimate.com/github/AsgardCms/Block)[![Total Downloads](https://camo.githubusercontent.com/c2f1b4180089800abb0c33ab9b8a7507bfdb041f1df9f47878cb49c6d8aaafc4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617367617264636d732f626c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asgardcms/block)[![Slack](https://camo.githubusercontent.com/5379498bc3498bb41df326f2981e2cae90bd1ba46d635bb0c0faedcdc746278d/687474703a2f2f736c61636b2e617367617264636d732e636f6d2f62616467652e737667)](http://slack.asgardcms.com/)

BranchTravis-cimaster[![Build Status](https://camo.githubusercontent.com/a927a0be89a8dd61e6697cb8725453e4dd930c5b4bea77ff6745615b9d156ffd/68747470733a2f2f7472617669732d63692e6f72672f417367617264436d732f426c6f636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AsgardCms/Block)2.0[![Build Status](https://camo.githubusercontent.com/1421d8144da70f7efeec81036164e04cc49f6a5c0658d3e2bc241bcfce2a415e/68747470733a2f2f7472617669732d63692e6f72672f417367617264436d732f426c6f636b2e7376673f6272616e63683d322e30)](https://travis-ci.org/AsgardCms/Block)Installation
------------

[](#installation)

### Download

[](#download)

You can install the Block module, with the following command which allows the module to be edited for your project.

```
php artisan asgard:download:module asgardcms/block --migrations
```

### Composer

[](#composer)

You can install the Block module with composer:

```
$ composer require asgardcms/block
```

Then run the following command to install the database tables:

```
$ php artisan module:migrate Block
```

### Permissions

[](#permissions)

In the backend GUI, go to Users &gt; Roles &gt; Admin. Then the permissions tab, and give the Admin role the permissions for the block module.

Documentation
-------------

[](#documentation)

This is a very simple module to create re-usable blocks of content. The blocks of content are created in the administration. You give it a name and a content.

After this, you'll be able to get the content of a block with the following code:

```
{!! Block::get('block-name') !!}
```

### Hooks

[](#hooks)

Hooks are special events, where it allows you to change the data stored before it's stored in the database.

#### `BlockIsCreating`

[](#blockiscreating)

Triggered before a block is created.

#### `BlockIsUpdating`

[](#blockisupdating)

Triggered before a block is updated.

#### `BlockContentIsRendering`

[](#blockcontentisrendering)

Triggered when a block body gets displayed.

Resources
---------

[](#resources)

- [Contribute to AsgardCMS](https://asgardcms.com/en/docs/getting-started/contributing)
- [License](LICENSE.md)

Info
----

[](#info)

All AsgardCMS modules respect [Semantic Versioning](http://semver.org/).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/68698be1e3007909756eb28a856cccb3ac5c38705b037a90091d591dc0bba02b?d=identicon)[fadriqueclickennet](/maintainers/fadriqueclickennet)

---

Top Contributors

[![fadriqueclickennet](https://avatars.githubusercontent.com/u/48823970?v=4)](https://github.com/fadriqueclickennet "fadriqueclickennet (3 commits)")

### Embed Badge

![Health badge](/badges/fadriqueclickennet-block-module/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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