Skip to content

kettalevi/php-dynamic-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Dynamic Header

A lightweight reusable dynamic navigation header with icons for PHP applications.

Preview

Dynamic Header

Features

  • Dynamic menu configuration
  • Font Awesome icon support
  • Automatic active page highlighting
  • Lightweight and easy to integrate
  • Simple PHP include

Installation

Clone the repository:

git clone https://github.com/kettalevi/php-dynamic-header.git

Usage

Include the header in your page:

require "dynamic_header.php";

Menu Configuration

Edit the menu items in:

config/menu.php

Example:

$menu = [
    [
        "title" => "Dashboard",
        "icon" => "fa-solid fa-house",
        "link" => "index.php"
    ],
    [
        "title" => "Users",
        "icon" => "fa-solid fa-users",
        "link" => "users.php"
    ],
    [
        "title" => "Reports",
        "icon" => "fa-solid fa-chart-line",
        "link" => "reports.php"
    ]
];

License

MIT License

About

A lightweight reusable dynamic navigation header with icons for PHP applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages