Download the PHP package marionnewlevant/mega-merge without Composer

On this page you can find all versions of the php package marionnewlevant/mega-merge. 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 mega-merge

MegaMerge plugin for Craft CMS 4.x

MegaMerge: [merge]() MegaMerge provides a fieldtype which is a Craft table with predefined Key and Value columns. It lets you merge together those fields with php arrays and twig arrays, and then look up values of keys in the merged array. The resultant values are parsed as twig.

This is a general purpose utility, though one of its potential uses (and the one for which I wrote it) is as a do-it-yourself seo system.

Requirements

This plugin requires Craft CMS 4.0.0 or later.

Installation

  1. Install with Composer via composer require marionnewlevant/mega-merge from your project directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins

or

  1. Install via the Plugin Store

MegaMerge Overview

MegaMerge provides a fieldtype (a key/value table) and three functions:

craft.megaMerge.init() is passed an array of key/value pairs (elements in this array can be megaMerge fields, php arrays, or twig arrays), and a context object. It adds the key/value pairs to a global collection of key/value pairs, and the context object to a global context object.

craft.megaMerge.reset() sets the global key/value pairs and the global context to empty.

craft.megaMerge.value(key) looks up the value associated with key in the key/value pairs, interprets it as twig using the global context, and retuns the parsed value. It returns null if there is no matching value.

Using MegaMerge

The key/value pairs A megaMerge field called globalSettings in the g_configuration global set:

Settings defined in config/custom.php:

Calling init The globalSettings values will override the config.general.megaMerge ones:

Calling value

Brought to you by Marion Newlevant. Icon insides by Dmitry Baranovskiy from the Noun Project


All versions of mega-merge with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.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 marionnewlevant/mega-merge contains the following files

Loading the files please wait ....