Download the PHP package hryvinskyi/magento2-head-tag-manager without Composer

On this page you can find all versions of the php package hryvinskyi/magento2-head-tag-manager. 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 magento2-head-tag-manager

Adobe Commerce / Magento 2 Head Tag Manager Module

Latest Stable Version Total Downloads License

This module provides a robust solution for managing HTML head elements in Adobe Commerce / Magento 2 applications. This module allows you to dynamically add, modify, and render various HTML head elements like meta tags, stylesheets, scripts, and other elements.

Features:

Key Features

Installation

Composer Installation

Manual Installation

  1. Create directory app/code/Hryvinskyi/HeadTagManager
  2. Download and extract module contents to this directory
  3. Enable the module:

Usage

Via ViewModel

Architecture

Cache Strategy

This module is not recommended for use on cached blocks, but this module provides a cache-aware architecture to handle head elements on cached blocks, and correctly render them.

Common Methods

Advanced Usage

Custom Elements

To add support for a new head element type:

  1. Create Element Class: Implement HeadElementInterface
  2. Create Factory: Extend AbstractHeadElementFactory
  3. Create Strategy: Implement HeadElementSerializationStrategyInterface
  4. Register via DI: Add to di.xml configuration

Example Custom Element

Custom Factory

Custom Serialization Strategy

Custom Factory Registration

To register your custom element and factory, add the following to your di.xml:

Usage

To use your custom element, simply call the factory from the HeadTagManager:

Element Serialization

Custom serialization strategies allow for element-specific handling:

Integration

The module automatically injects head elements at the <!-- {{HRYVINSKYI:PLACEHOLDER:HEAD_ADDITIONAL}} --> placeholder in your HTML output.

Version History

See CHANGELOG.md for detailed version history and migration notes.

Testing

The module includes comprehensive test coverage:

Run tests with:

Contributing

Contributions are welcome! Please ensure:

License

Copyright © 2025 Volodymyr Hryvinskyi. All rights reserved.


All versions of magento2-head-tag-manager with dependencies

PHP Build Version
Package Version
Requires magento/framework 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 hryvinskyi/magento2-head-tag-manager contains the following files

Loading the files please wait ....