Download the PHP package sifuen/module-upgradable-content without Composer

On this page you can find all versions of the php package sifuen/module-upgradable-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-upgradable-content

Sifuen_UpgradableContent

This Magento 2 module allows you to upgrade your CMS blocks and pages using UpgradeData scripts.

Installation

You can install this module using composer

Or you can clone this repository and place it into app/code/Sifuen/UpgradableContent/.

How To Use

Your UpgradeData script should inject Sifuen\UpgradableContent\Model\ContentUpgrader. In your constructor, you should initialize the ContentUpgrader using $this->contentUpgrader->setContentModule([your module name]). This is used to find your CMS content files.

Initializing

Assuming the module you create your UpgradeData file in is called Sifuen_CmsTest, you would invoke setContentModule('Sifuen_CmsTest') to tell the ContentUpgrader that this module is where you can find your CMS content files.

By default, CMS content files are read from [your module directory]/Setup/content/[version]/[pages/blocks]/[identifier].html. To change this, see Advanced Initialization

See Advanced Initialization for other ways to initialize the ContentUpgrader.

Upgrading Content

You are given access to two main methods on the ContentUpgrader instance.

$this->upgradeCmsPages($version, $identifiers)

$this->upgradeCmsBlocks($version, $identifiers)

$version is the module version you are upgrading to.

$identifiers can be two things:

You usually use the second version of $identifiers if you are creating CMS content, while you will use the first if you are updating CMS content.

Example

The files that the ContentUpgrader will read are:

Advanced Initialization

There are a few constructor arguments that can be overridden on Sifuen\UpgradableContent\Model\ContentUpgrader. See the following di.xml example to see what is available to override.

If you set contentDirectory on ContentUpgrader, then contentModuleName and moduleContentFolder are ignored. contentDirectory is meant to completely override how the module finds the content files.

You can also set these manually in the constructor of your UpgradeData script.


All versions of module-upgradable-content with dependencies

PHP Build Version
Package Version
Requires magento/framework Version 100.0.*|100.1.*|101.0.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sifuen/module-upgradable-content contains the following files

Loading the files please wait ....