Download the PHP package montikids/module-message-popup without Composer

On this page you can find all versions of the php package montikids/module-message-popup. 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-message-popup

About the module

The module allows us to use popups to display notification messages. It works for both: frontend and admin areas.

It also is quite flexible. For instance, you can use it only for displaying error messages for admins and keep all the other notifications displaying in the standard way. Furthermore, you don't have to replace standard notifications at all, just use it for custom-defined messages in places you need it.

Main features

How does it look like

Admin area

Success notification

Error notification

Warning notification

Frontend area

Success notification

Notice notification

Warning notification

Error notification

How to use

Add a new popup message in any area

It's a two-step action.

  1. Add the message manager to the constructor of your controller

  2. Add messages of any type as you do this with the standard Magento's message manager. You can do this because the PopupMessageProxy class implements the \Magento\Framework\Message\ManagerInterface interface.

Display currently existed messages in popups

  1. Go to the admin settings Stores -> Configuration -> Montikids -> Message Popup
  2. Make sure you enabled the module itself
  3. Make sure you allowed popup notifications in the desired area
  4. Enable the replacement mode for the area
  5. Select which types of the notifications you want to see in popups
  6. Save the configuration
  7. Flush the config cache

Display popup on AJAX response

It's intended to be used with AJAX forms in the admin area, when you display the form in a popup, instead of redirecting to an edit page. You can try to use it with another UI components hat make AJAX calls, but it's not tested yet.

  1. Go to the admin settings Stores -> Configuration -> Montikids -> Message Popup

You don't have to specify each option, only the ones you want to override. Potentially, nn case you're okay with the default values, is can be as simple as that:

An example of the possible structure of your AJAX response JSON body:

Local developing

The is only one of several options, but I think it's the simplest one.

The main approach is to clone the repository inside a separate folder and tell composer to use this folder as source of the package.

If you don't like it, feel free using other approaches, like git submodules, Modman, or direct cloning inside the app/code folder.

Go to the root of your Magento installation and create a new folder inside your Magento project:

Go inside:

Clone the package repository:

Go back to the root of your project:

Tell composer to load the package from the local path:

Install the package as usual:

As a result, you get symlinked your app/packages/montikids/module-message-popup folder to the vendor/montikids/module-message-popup.

The main difference between this and just placing the repository into app/code that you can always make sure your composer.json is correct and the module is compatible with your project.

If you have already installed the module via composer, remove the folder first:


All versions of module-message-popup with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 montikids/module-message-popup contains the following files

Loading the files please wait ....