PHPackages                             baraja-core/content-storm - 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. baraja-core/content-storm

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

baraja-core/content-storm
=========================

A simple PHP library for rendering content with components.

v1.3.0(4y ago)110PHPPHP ^8.0

Since Sep 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/baraja-core/content-storm)[ Packagist](https://packagist.org/packages/baraja-core/content-storm)[ Docs](https://github.com/baraja-core/content-storm)[ RSS](/packages/baraja-core-content-storm/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (8)Versions (10)Used By (0)

Content with module system
==========================

[](#content-with-module-system)

[![Integrity check](https://github.com/baraja-core/content-storm/workflows/Integrity%20check/badge.svg)](https://github.com/baraja-core/content-storm/workflows/Integrity%20check/badge.svg)

A simple PHP library for rendering content with components.

📦 Installation
--------------

[](#-installation)

It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on [Packagist](https://packagist.org/packages/baraja-core/content-storm) and [GitHub](https://github.com/baraja-core/content-storm).

To install, simply use the command:

```
$ composer require baraja-core/content-storm

```

You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.

🗺️ Idea
-------

[](#️-idea)

Imagine article in database with content:

```
Hello, this is article about cats.

How to breed a cat?

The behavior of cats is very simple. It is important to have a lot of meat.

Animal
   | Mammal
      | Cat

This content will be passed to my own component.
The parameters (stored in json) that the component uses for advanced rendering are also passed.

```

In the basic usage, you can write content as plain HTML. In this case, the exact same content that you create is returned.

By adding a comment annotation (for example `\`), you can mark a part of a template as a component.

The component consists of a **name** (opening and closing tags must be the same), **content** and optional **parameters**.

🛠️ Definition
-------------

[](#️-definition)

A component is defined as a part of a text file that begins (for example `\`) and ends (``) with a comment annotation.

Common syntax is:

```

      ^          ^                 ^
      |          |                 |
      ______    _____________    ______________
     /      \  /             \  /              \

```

Important parser rules:

- Components cannot be nested.
- The name in the start and end tags must be the same.
- Parameters are written as valid json, which can be embedded. Each parameter always has a key (string) and a value (mixed).

✅ Debugging
-----------

[](#-debugging)

In case of an error, a `ParseException` is automatically thrown, which contains information about the **passed input** and the **line number** where the error occurred.

If your project supports Tracy, the error is drawn graphically directly in the passed text:

[![Tracy example: Invalid block name](doc/invalid-block-name.png)](doc/invalid-block-name.png)

🌐 Compatibility
---------------

[](#-compatibility)

This package is fully compatible with the WordPress Post component system. This package adds many new features and benefits that you will quickly appreciate.

📄 License
---------

[](#-license)

`baraja-core/content-storm` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/content-storm/blob/master/LICENSE) file for more details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~113 days

Recently: every ~132 days

Total

6

Last Release

1491d ago

PHP version history (4 changes)v1.0.0PHP &gt;=7.1.0

v1.1.0PHP &gt;=7.4.0

v1.2.0PHP ^7.4 || ^8.0

v1.3.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (26 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![imgbot[bot]](https://avatars.githubusercontent.com/in/4706?v=4)](https://github.com/imgbot[bot] "imgbot[bot] (1 commits)")

---

Tags

articlearticle-renderingcomponentcontentcontent-componentcontent-renderingmodulephp-librarypostrenderingtracy

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baraja-core-content-storm/health.svg)

```
[![Health](https://phpackages.com/badges/baraja-core-content-storm/health.svg)](https://phpackages.com/packages/baraja-core-content-storm)
```

###  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)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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