PHPackages                             space48/magento2-cms-content-setup - 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. space48/magento2-cms-content-setup

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

space48/magento2-cms-content-setup
==================================

Provides tooling for initial CMS content creation by FE developer using install scripts and fixtures

0.1.0(5y ago)161MITPHP

Since Apr 23Pushed 4y ago3 watchersCompare

[ Source](https://github.com/Space48/magento2-cms-content-setup)[ Packagist](https://packagist.org/packages/space48/magento2-cms-content-setup)[ RSS](/packages/space48-magento2-cms-content-setup/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

CmsContentSetup
===============

[](#cmscontentsetup)

Magento2 module to simplify CMS content creation.

Purpose
-------

[](#purpose)

This tool is designed to allow frontend developer easily install CMS Pages and Blocks skeletons with 'Lorem ipsum' or actual content at the early stage of the project.

Developer can create a content on local machine, then create a fixtures out of the database data generated by Page Builder or by WYSIWYG. Then add install scripts or data patches to install the data automatically on all CI environments and other developers local machines.

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

[](#installation)

**Via composer**:

- Add module:

```
composer config repositories.space48-magento2-cms-content-setup vcs git@github.com:Space48/magento2-cms-content-setup.git
composer require "space48/magento2-cms-content-setup:{module-version}"

```

- Run `setup:upgrade`

Usage
-----

[](#usage)

1. Install 'CmsContentSetup' module on your project
2. Create a separate module for fixtures and install scripts (for ex. MyProject/CmsSetup)
3. Create a html files containing your CMS Blocks or Pages code under 'fixtures' folder of your module.
4. Create a Data Patch or install scripts in your module for installing Blocks and Pages.

Example Data Patch for **CMS Block**:

```
public function __construct(
        ModuleDataSetupInterface $moduleDataSetup,
        \Space48\CmsContentSetup\Model\Setup\Blocks $blockSetup
) {
    $this->moduleDataSetup = $moduleDataSetup;
    $this->blockSetup = $blockSetup;
}

...

public function apply()
{
    $this->moduleDataSetup->startSetup();

    $this->blockSetup->install(
        [
            [
                'title' => 'Test Block',
                'identifier' => 'test_block',
                'file' => 'MyProject_CmsSetup::blocks/test/test_block.html', // starting from 'fixtures' folder
                'stores' => ['nl', 'fr'], // can be id or code
                'is_active' => true
            ]
        ]
    );

    $this->moduleDataSetup->endSetup();
}
```

Example Data Patch for **CMS Page**:

```
public function __construct(
    ModuleDataSetupInterface $moduleDataSetup,
    \Space48\CmsContentSetup\Model\Setup\Pages $pagesSetup
) {
    $this->moduleDataSetup = $moduleDataSetup;
    $this->pagesSetup = $pagesSetup;
}

...

public function apply()
{
    $this->moduleDataSetup->startSetup();

    $this->pagesSetup->install(
        [
            [
                'title' => 'Test Page',
                'page_layout' => '1column',
                'meta_keywords' => '',
                'meta_description' => '',
                'identifier' => 'test_page',
                'content_heading' => 'Content Heading',
                'layout_update_xml' => '',
                'url_key' => 'test_page',
                'stores' => ['de', 'fr'], // code or id
                'sort_order' => 0,
                'is_active' => true,
                'file' => 'MyProject_CmsSetup::pages/test_page.html', // starting from 'fixtures' folder
            ]
        ]
    );

    $this->moduleDataSetup->endSetup();
}
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1942d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fc6deb604a4a18e3d7b9f8d73a8ad52bd8f9556e6d84f6fb0ee76eeee65b330?d=identicon)[space48](/maintainers/space48)

---

Top Contributors

[![stkec](https://avatars.githubusercontent.com/u/3246277?v=4)](https://github.com/stkec "stkec (2 commits)")

---

Tags

cmsinstall

### Embed Badge

![Health badge](/badges/space48-magento2-cms-content-setup/health.svg)

```
[![Health](https://phpackages.com/badges/space48-magento2-cms-content-setup/health.svg)](https://phpackages.com/packages/space48-magento2-cms-content-setup)
```

###  Alternatives

[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27714.5k4](/packages/nosto-module-nostotagging)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69362.0k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1861.2k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[mage-os/module-rma

Return Merchandise Authorization

229.1k](/packages/mage-os-module-rma)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

2610.9k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

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