Skip to content

Iqbolshoh/php-admin-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

145 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š PHP Admin Panel

PHP Admin Panel is a lightweight, ready-to-extend admin dashboard template built with PHP, Bootstrap 5, and AdminLTE 3. It provides a data-driven sidebar menu, a breadcrumb-aware page header, stat cards, and a SweetAlert2-powered logout confirmation β€” a clean starting point for building your own admin backend on top of it.

PHP License

Banner

πŸ“š Table of Contents

✨ Features

βœ… Data-Driven Sidebar – Menu items and pages are defined in a single PHP array, no hardcoded HTML. βœ… Automatic Breadcrumbs – The current page's breadcrumb and active menu state are resolved automatically. βœ… Dashboard Stat Cards – Ready-made AdminLTE "small box" widgets for at-a-glance metrics. βœ… Profile Page – A dedicated profile.php page wired into the same layout. βœ… Logout Confirmation – SweetAlert2 confirmation dialog before logging out. βœ… Shared Layout – header.php and footer.php keep every page consistent with one include.

βš™οΈ Installation

1️⃣ Clone the repository

git clone https://github.com/Iqbolshoh/php-admin-panel.git
cd php-admin-panel

2️⃣ Serve the project

Use any PHP-compatible server (Apache, Nginx, XAMPP, WAMP, MAMP) and place the project files in the server's root directory (htdocs/www), or run PHP's built-in server:

php -S localhost:8000

3️⃣ Open it in your browser

http://localhost:8000

πŸ“Œ Adding Sidebar Menu Items

The $menuItems array in header.php defines the sidebar. Each entry includes:

βœ… menuTitle – The section name (e.g. "Dashboard"). βœ… icon – The section icon (e.g. "fas fa-home"). βœ… pages – Subpages, each with a "title" and a "url".

$menuItems = [
    [
        "menuTitle" => "Dashboard",
        "icon" => "fas fa-tachometer-alt",
        "pages" => [
            ["title" => "Home", "url" => "index.php"]
        ],
    ],
    [
        "menuTitle" => "Settings",
        "icon" => "fas fa-cog",
        "pages" => [
            ["title" => "Profile", "url" => "profile.php"]
        ],
    ]
];

The active menu item and breadcrumb trail are resolved automatically by matching the current page's filename against this array.

πŸ“‚ Project Structure

php-admin-panel/
β”œβ”€β”€ header.php    # <head>, navbar, sidebar, and $menuItems config
β”œβ”€β”€ footer.php    # Closing markup + logout confirmation script
β”œβ”€β”€ index.php     # Dashboard page (stat cards)
β”œβ”€β”€ profile.php   # Profile page
└── src/images/   # Banner, logo, and profile picture assets

πŸ–₯ Technologies Used

HTML CSS Bootstrap JavaScript jQuery PHP

πŸ“œ License

This project is open-source and available under the MIT License.

🀝 Contributing

🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

πŸ“¬ Connect with Me

πŸ’¬ I love meeting new people and discussing tech, business, and creative ideas. Let's connect! You can reach me on these platforms:

Website Gmail GitHub LinkedIn Telegram WhatsApp Instagram X YouTube

About

🎨 PHP Admin Panel is a lightweight, customizable admin dashboard built with pure PHP β€” no frameworks required. ✨Designed for small to medium projects, it offers a clean UI, dynamic sidebar, alerts, and easy configuration for rapid development. πŸ’»

Topics

Resources

License

Stars

28 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages