PHPackages                             maxpertici/gutenberg-markup - 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. maxpertici/gutenberg-markup

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maxpertici/gutenberg-markup
===========================

Gutenberg block templates and utilities for the Markup package

0.7.0(5mo ago)113MITPHPPHP &gt;=8.1

Since Nov 14Pushed 2mo agoCompare

[ Source](https://github.com/maxpertici/gutenberg-markup)[ Packagist](https://packagist.org/packages/maxpertici/gutenberg-markup)[ RSS](/packages/maxpertici-gutenberg-markup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

Gutenberg Markup
================

[](#gutenberg-markup)

A PHP library for writing Gutenberg (WordPress) markup in a consistent and stylable way. A tool to produce maintainable markup, write blocks and nest them like Gutenberg blocks, with a fluent approach.

Concept
-------

[](#concept)

- Each Gutenberg block is represented by a class (e.g. `HeadingBlock`).
- The markup is built from attributes (attrs) provided to the block.
- Traits (`Concerns`) factor out common behaviors (colors, typography, alignment, etc.).

Basic example — Heading block
-----------------------------

[](#basic-example--heading-block)

```
use Maxpertici\GutenbergMarkup\Blocks\HeadingBlock;

$block = new HeadingBlock(
	content: 'Hello world',
	level: 2
);
$block->textColor( 'primary' );
echo $block->renderBlocks();

// Note: the exact API may evolve. Check the classes in `src/Blocks` for the available options.
```

Dependency
----------

[](#dependency)

This library relies on the Markup package:

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance80

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.8% 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 ~0 days

Total

11

Last Release

175d ago

PHP version history (2 changes)0.1PHP &gt;=8.0

0.5.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed0ec4f2da112567c22bba05ac82ed103d4313610b7008eacec81ef0a5298012?d=identicon)[maxpertici](/maintainers/maxpertici)

---

Top Contributors

[![mpertici-beapi](https://avatars.githubusercontent.com/u/238022345?v=4)](https://github.com/mpertici-beapi "mpertici-beapi (43 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")[![maxpertici](https://avatars.githubusercontent.com/u/48124450?v=4)](https://github.com/maxpertici "maxpertici (3 commits)")

### Embed Badge

![Health badge](/badges/maxpertici-gutenberg-markup/health.svg)

```
[![Health](https://phpackages.com/badges/maxpertici-gutenberg-markup/health.svg)](https://phpackages.com/packages/maxpertici-gutenberg-markup)
```

PHPackages © 2026

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