Download the PHP package mage-os/module-page-builder-template-import-export without Composer

On this page you can find all versions of the php package mage-os/module-page-builder-template-import-export. 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-page-builder-template-import-export

MageOS PageBuilder Templates Import/Export Module for Magento

Enrich PageBuilder adding templates import/export management.


Overview

The PageBuilder Templates Import/Export module allows you to import and export pagebuilder templates through different magento instances. You can use it exporting zip templates file locally and move to remote instances or pulling directly from a configured dropbox storage.

🚀 Features

Export Template

Once the module is enabled you can export templates through adminhtml ui going to "Content > Elements > Templates" section clicking on the "Actions" column or through cli. For cli export execute the following command:

As result of export you will obtain a .zip file containing the template.

Import Template

You can import templates from adminhtml ui always from the "Content > Elements > Templates" section. At the top of the page you'll se a CTA "Import Template", clicking on it a modal opens with an "Upload button" find the zip file from the search window and select it. Cli command is also supported for import:

Remote Template Import

Once you've configured one or more dropbox apps with success you'll be able to see the remote templates stored there inside the "Import Template" modal. You will be able to filter them and import on you Magento instance clicking on "Import" link on "Action" column. Remote dropbox repositories are synced with configured in every dropbox app webhooks. An alignment is done once per day at 0:00 but you can also make a full alignment executing the following cli command:

🔧 Installation

  1. Install it into your Mage-OS/Magento 2 project with composer:

  2. Enable module

  3. Add consumer to queue consumer list (suggested)

    Update your env.php file adding "pbTemplateImport" to consumers.

⚙️ Configuration

The module provides configuration options under Stores > Configuration > General > Content Management > Pagebuilder template import/export

General Configuration

Dropbox repositories Configuration

To synchronize remote templates stored on a dropbox repository owned by a vendor you need to add a dropbox app. Follow these instructions:

To synchronize remote templates stored on one of your own dropbox accounts add a dropbox app following these steps:

Congratulations! This credentials will be used for each dropbox api call to the related app storage. This configuration is managed as multi-row so you can add multiple dropbox apps related to different repositories simultaneously.

Dropbox app Creation

In order to connect Magento with dropbox you need to create a dropbox app related to it: https://www.dropbox.com/developers/reference/getting-started If you're configuring your own dropbox application for your Dropbox Account you must follow these steps: 1) Select "Scoped Access" on "Choose an API" section 2) Select "Full Dropbox" on "Choose the type of access you need" section 3) Add an app name ex: "My Mage-OS Template Storage"

Dropbox app Configuration

The most important thing is setting the right permissions (following permissions are required):

If you are the owner on Dropbox space and you can manage the app directly you can also configure webhooks for realtime notification and sync. To do so, add your site webhook endpoint inside "Webhook URIs" section as follows: https://www.mysite.com/pagebuildertemplateie/template_remote/sync

If correct, your Magento instance will be updated realtime for any update on your Dropbox.

If you're not the owner of the Dropbox you must ask for webhook update to the owner.

🤝 Changelog

Please see CHANGELOG for more information on what has changed recently.

📄 License

The MIT License (MIT). Please see License File for more information.


All versions of module-page-builder-template-import-export with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
magento/module-page-builder Version *
spatie/dropbox-api Version ^1.22
ext-zip Version *
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 mage-os/module-page-builder-template-import-export contains the following files

Loading the files please wait ...