PHPackages                             pm4life/cmsinstaller - 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. pm4life/cmsinstaller

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

pm4life/cmsinstaller
====================

Magento 2 utility module for migrating/managing cms pages and block data from local environment to remote

1.0.1(3y ago)110MITPHPPHP &gt;=7.4

Since May 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/pm4life/cmsinstaller)[ Packagist](https://packagist.org/packages/pm4life/cmsinstaller)[ RSS](/packages/pm4life-cmsinstaller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Magento 2 Cms Installer
=======================

[](#magento-2-cms-installer)

#### Why? Because why not.

[](#why-because-why-not)

Usually when developing new or maintaining project there is a need for managing cms content. This extension provides an option to export cms content to a `.html` which can be added to project repository and moved easily from local to development or production environment. At least that's the general idea, could be totally wrong here, who knows, who cares.

Installation:
-------------

[](#installation)

Download package from git or install it via composer with:

```
composer require pm4life/cmsinstaller
php bin/magento setup:upgrade

```

**Next, enable module either via console command:**

```
php bin/magento config:set cms/installer/is_enabled 1

```

**or by settings in admin**: Admin &gt; Stores &gt; Configuration &gt; General &gt; Content Management &gt; **Cms Content Installer**

[![Screenshot from 2022-05-03 10-03-20](https://user-images.githubusercontent.com/47811189/166421438-a41d5408-15f4-4773-af5c-d6a4029167d1.png)](https://user-images.githubusercontent.com/47811189/166421438-a41d5408-15f4-4773-af5c-d6a4029167d1.png)

Configuration
-------------

[](#configuration)

There are two options for cms templates, they can either be placed within `app/design/frontend/cms_install` directory, or within certain allowed modules, this is controlled by admin setting, by default when extension is installed it is set to use `app/design/frontend/cms_install` directory as template base.

By switching **Install Template Base** to `Allowed Module(s) Directory` you have option to select any **enabled module** from `app/code` space

[![Screenshot from 2022-05-03 10-10-19](https://user-images.githubusercontent.com/47811189/166422369-d1b0b2b2-4442-458a-bd9d-c2262f4e0c91.png)](https://user-images.githubusercontent.com/47811189/166422369-d1b0b2b2-4442-458a-bd9d-c2262f4e0c91.png)

The idea is to present options for developer to choose if for any reason it is more convenient to have them placed all at one location per project, or alternatively have templates separated per module within local space.

Usage
-----

[](#usage)

### Template preparation and export

[](#template-preparation-and-export)

After editing on cms page or block is completed in local environment, these can be exported to make them available for moving from environment.

To create template exports there are two ways, first one with console command:

```
php bin/magento cms:installer:export --type block --identifier 'catalog_events_lister,new_block_file'

```

Where two parameters are passed `--type` represents type of entity that is being exported, and `--identifier` represents unique identifiers of given page/cms block.

If command is called without parameters it will export all available cms blocks and pages.

Besides this way, when application is in **developer** or **default** mode, a button is available in admin panel on cms page and block forms, which generates template export that can be placed in apropriate filesystem location depending on configuration settings from above.

[![Screenshot from 2022-05-03 10-45-12](https://user-images.githubusercontent.com/47811189/166426407-d9830ada-8d60-43a0-987c-347951d4c8df.png)](https://user-images.githubusercontent.com/47811189/166426407-d9830ada-8d60-43a0-987c-347951d4c8df.png)

### Installing changes from templates to system

[](#installing-changes-from-templates-to-system)

To apply changes from template files on remote environment run:

```
php bin/magento cms:installer:apply

```

Changes to template files are tracked, so if you add changes to template file and run `cms:installer:apply` command, that will result in given block or page being updated with those changes.

### Additional features

[](#additional-features)

You can also use this console command to run regeneration of all **active** cms page url rewrites Please take into account any customizations that you have on your store as this is not something that should be done on a regular basis.

```
php bin/magento cms:installer:rebuild-url-rewrites

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Every ~255 days

Total

2

Last Release

1219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23908b304aff8a75775471e490bfc601f9b9daaade372c2c710ec044471f135f?d=identicon)[pm4life](/maintainers/pm4life)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pm4life-cmsinstaller/health.svg)

```
[![Health](https://phpackages.com/badges/pm4life-cmsinstaller/health.svg)](https://phpackages.com/packages/pm4life-cmsinstaller)
```

###  Alternatives

[z3d0x/filament-fabricator

Block-Based Page Builder Skeleton for your Filament Apps

373158.4k3](/packages/z3d0x-filament-fabricator)[matthiasmullie/geo

Geography helper

6377.6k1](/packages/matthiasmullie-geo)[nasyrov/laravel-enums

Laravel package for Enum implementation.

3272.5k](/packages/nasyrov-laravel-enums)[mestrona/magento-module-categoryredirect

Magento 2 Module to simply customize the menu with additional URLs: Create a category, enter the redirect, done.

2343.0k](/packages/mestrona-magento-module-categoryredirect)[kphoen/rulerz-spec-builder

Specification builder for RulerZ

1149.5k](/packages/kphoen-rulerz-spec-builder)

PHPackages © 2026

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