Download the PHP package aleron75/mage2hints without Composer

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

Magento 2 hints module

This module adds layout handles and template hints to generated page output as HTML comments.

It can be used by frontend developers to quickly spot the containers, blocks or UI elements that are used to compose the current viewed page.

Installation

Install module

You can install Magento 2 hints module through composer.

First add the repository accessing through HTTP protocol:

php composer.phar config repositories.foo vcs https://github.com/aleron75/mage2hints.git

or accessing through SSH protocol:

php composer.phar config repositories.foo vcs [email protected]:aleron75/mage2hints.git

Then add the dependency:

php composer.phar require aleron75/mage2hints:~1.0

Alternatively you can manually add the dependency in your composer.json.

Accessing through HTTPS protocol:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/aleron75/mage2hints.git"
        }
    ],
    "require": {
        "aleron75/mage2hints": "~1.0"
    }
} 

Accessing through SSH protocol:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "[email protected]:aleron75/mage2hints.git"
        }
    ],
    "require": {
        "aleron75/mage2hints": "~1.0"
    }
} 

Once you have added the module dependency, run the following command from your project root:

composer update

Enable module

After the composer update finishes updating dependencies, run the following commands from your project root:

bin/magento module:enable Aleron75_Mage2Hints
bin/magento setup:upgrade

If you are in production mode, you also need to generate DI configuration and all non-existing interceptors and factories through the following command:

bin/magento setup:di:compile

Usage

To add layout handles and template hints to page as HTML comments simply add an html parameter to the URL like shown below:

http://magento2.local/?hints=true

Then you can inspect your HTML source code and expect seeing something like this:

<body ...>
<!-- [LAYOUT_HANDLES] default - cms_index_index - cms_page_view - cms_index_index_id_home [/LAYOUT_HANDLES] -->
<!-- [CONTAINER  name="root"] -->
<!-- [CONTAINER  name="after.body.start" alias="after.body.start" parent_name="root"] -->
<!-- [BLOCK  name="googleoptimizer.experiment.script" alias="googleoptimizer.experiment.script" parent_name="after.body.start" type="Magento\GoogleOptimizer\Block\Code\Page" template_path=""] -->
...    
<!-- [/CONTAINER name="root"] -->
</body>

All versions of mage2hints with dependencies

PHP Build Version
Package Version
Requires php Version ~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0|~7.3.0|~7.4.0
magento/framework Version ~100.0|~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 aleron75/mage2hints contains the following files

Loading the files please wait ....