d3p1 / module-sticky-header

d3p1/module-sticky-header

Sticky header

magento2-module Compatibility: Not yet tested Code Quality: N/A Tests: N/A Security: Pending MIT

[LIBRARY PHP TEMPLATE]

code style: prettier
Release
semantic-release: angular

Introduction

A template to build PHP libraries.

The goal of this template is to simplify the process of creating, maintaining, and publishing libraries. It provides a ready-to-use setup with sensible defaults, including an automated release workflow triggered on every push to the repository.

Usage

Using this library is straightforward:


1. Create a repository

Click the Use this template button to create a new repository based on this template.


2. Update composer.json

Edit the composer.json file to reflect your library’s metadata:

  • name – Your library name
  • description – Short and meaningful description
  • authors – Author information
  • require - Library dependencies
  • autoload - Autoload configuration

3. Install dependencies

Execute the following commands:

composer install

4. Develop your library

Start developing your library inside the src folder.

Every commit must follow this Conventional Commits format:

<type>(<scope>): <description> [<issue-number>]

[!NOTE]
This is required by the release workflow, which analyzes every commit to automatically generate the releases.


5. Finalize documentation

Update the README.md to describe your library’s purpose and usage.

[!IMPORTANT]
Don’t forget to update the release badge URL at the top of this file if you keep it — it currently points to this repository.


[!NOTE]
To gain a deeper understanding of how to use this library and how it works under the hood, visit the wiki page (in progress).

[!NOTE]
There is a ticket to add testing tools to improve the library's validation workflow.

Changelog

Detailed changes for each release are documented in CHANGELOG.md.

License

This work is published under MIT License.

Author

Always happy to receive a greeting on:

1.0.0 (2026-05-08)

Features

1.0.0 (2026-04-22)

Features

Versions
Version Stability QA Status Compatibility Released
v1.0.0 stable Running Not yet tested Details 2026-05-08 03:10:43

Requires 3

Package Constraint
magento/framework ~101.0||~102.0||~103.0
magento/module-theme ~101.0
php ^7.0.0||^8.0.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 not tested not tested
2.4.8 not tested not tested
2.4.9 not tested not tested

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Unknown Unknown
2.4.8 Unknown Unknown
2.4.9 Unknown Unknown
License
MIT
Homepage
https://www.d3p1.dev
Authors

More from d3p1

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.