📊 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.

📚 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
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

📜 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:
评论