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 today

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 63% 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

3000d 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

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k155.8M380](/packages/mobiledetect-mobiledetectlib)[chrisharrison/php-array-of

Implement an array of a defined type. Generics replacement for PHP.

10697.4k2](/packages/chrisharrison-php-array-of)[crucifyer/css-browser-selector

CSS Browser Selector - no need css hack. html tag adding your browser info

3422.6k](/packages/crucifyer-css-browser-selector)[glicer/link-checker

Check broken links in html files, sitemap.xml and robots.txt

3113.7k](/packages/glicer-link-checker)[tatter/settings

Lightweight settings management for CodeIgniter 4

239.9k](/packages/tatter-settings)

PHPackages © 2026

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