PHPackages                             alaa/magento2-head-footer-scripts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alaa/magento2-head-footer-scripts

AbandonedArchivedMagento2-module[Utility &amp; Helpers](/categories/utility)

alaa/magento2-head-footer-scripts
=================================

Magento2 Head Footer Scripts

1.0.1(8y ago)433MITPHP

Since Dec 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alaa-almaliki/magento2-head-footer-scripts)[ Packagist](https://packagist.org/packages/alaa/magento2-head-footer-scripts)[ RSS](/packages/alaa-magento2-head-footer-scripts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Magento2 Head Footer Scripts
============================

[](#magento2-head-footer-scripts)

The extension enables developers and merchants to add scripts to head or footer by adding them from the admin panel.

Supported Versions
==================

[](#supported-versions)

The module is tested on community edition versions 2.1.9, 2.2.0, 2.2.1, and 2.2.2

Features
========

[](#features)

- It comes with a list of pages out of the box such as: All Pages, Home Page, Category Page, Product Page, Cart Page, Checkout Page, and Success Page.
- More pages can be added.
- It supports store views.
- It is configurable with feature switch, so you can turn it off by disabling the functionality
- Scripts are cached once loaded from the db, so the page load is reduced to minimum and all page related scripts are cached in one file.
- Scripts are ordered by their sort order values, so the order of which script is included before others is simply configurable.
- It reduces development time for developers and is a convenient way for merchants to add scripts on which page sections and which pages.
- The module does not add an extra layer of complexity, try it out, you like it use it otherwise trash it at no expense.

Installation
============

[](#installation)

1. `composer require alaa/magento2-head-footer-scripts:1.0.0`
2. `php bin/magento module:enable Alaa_HeadFooterScripts`
3. `php bin/magento setup:upgrade`

Usage
=====

[](#usage)

- The module is enabled by default, but it can be disabled from **Admin &gt; Stores &gt; Configuration &gt; Head Footer Scripts** section
- Add Scripts from **Admin &gt; Head Footer Scripts &gt; Scripts**
- Add more pages from **Admin &gt; Head Footer Scripts &gt; Pages**
- Once a new script is saved, it is indexed by its pages (Layout Handles) and stores
- Editing existing or saving new scripts will need to flush `block_html` cache to take effect
- It can be re-indexed by running the command `php bin/magento indexer:reindex head_footer_script`

Contribution
============

[](#contribution)

Please feel free to raise any issues and contribute if you have found any bugs or want to add any missing features

Licence
=======

[](#licence)

MIT

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

3048d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c696bf597ea0fdd1fd166ce20d7c15c873f16547e874bd67ecb70c4abfdb2cb?d=identicon)[alaa-almaliki](/maintainers/alaa-almaliki)

---

Top Contributors

[![alaa-almaliki](https://avatars.githubusercontent.com/u/7830984?v=4)](https://github.com/alaa-almaliki "alaa-almaliki (9 commits)")

---

Tags

magento2magento2-modulemagento2 head footer scripthead footer scripts

### Embed Badge

![Health badge](/badges/alaa-magento2-head-footer-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/alaa-magento2-head-footer-scripts/health.svg)](https://phpackages.com/packages/alaa-magento2-head-footer-scripts)
```

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
