Introduction
NILOVA - Responsive PHP Bootstrap 5 Admin Template for All Your Web Projects
Nilova PHP is a premium Bootstrap 5 Admin Template that combines different themes with full flexibility and responsiveness. It’s crafted using HTML5, CSS3, and Bootstrap 5, offering seamless customization with SASS integration. Whether you’re building a web application, admin dashboard, or project management platform, this template ensures your site stands out with ease.
Support and Updates:
When you purchase Nilova, you gain access to free future updates to ensure your template remains up-to-date. Plus, our support team is always ready to assist with any questions.
Dependencies for Nilova
- PHP :- 8.5.4
- Bootstrap :- v5.3.8
- Node:- 24.4.0
- Npm :- 11.4.2
- Gulp :- v5.0.1
What Do You Get with the Nilova:
Nilova provides all necessary PHP, CSS, SCSS, JS files, along with detailed documentation to help you easily customize and implement the template.
Nilova Compatibility with Popular Browsers:
Nilova is fully compatible with major browsers, ensuring a seamless user experience across Chrome, Firefox, Safari, Edge, and Opera.
Folder Structure
Main Base file Structure
Main Base file structure of the Nilova template. Root:pages/layouts/base.php
The base.php file serves as the base file for all PHP pages in the Nilova template.
html
<!DOCTYPE html>
<html lang="en" dir="ltr" data-nav-layout="vertical" data-theme-mode="light" data-header-styles="light" data-width="fullwidth" data-menu-styles="dark" data-toggled="close">
<head>
<!-- Meta Data -->
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Description" content="PHP Bootstrap Responsive Admin Web Dashboard Template">
<meta name="Author" content="Spruko Technologies Private Limited">
<meta name="keywords" content="admin bootstrap dashboard, admin dashboard template, admin panel php template, admin php dashboard, bootstrap 5 admin template, bootstrap admin dashboard, bootstrap dashboard template, dashboard bootstrap template, dashboard php template, dashboard user interface, php admin dashboard, php admin template, php bootstrap template, php dashboard framework, php template dashboard.">
<!-- Title -->
<title> Nilova - PHP Bootstrap 5 Premium Admin & Dashboard Template </title>
<!-- Favicon -->
<link rel="icon" href="<?php echo $baseUrl; ?>/assets/images/brand-logos/favicon.ico" type="image/x-icon">
<!-- Start::Styles -->
<?php include 'layouts/components/styles.php'; ?>
<!-- End::Styles -->
<?php echo $styles; ?>
</head>
<body class="<?php echo $bodyClass; ?>">
<div class="progress-top-bar"></div>
<!-- Start::main-switcher -->
<?php include 'layouts/components/switcher.php'; ?>
<!-- End::main-switcher -->
<!-- Loader -->
<div id="loader" >
<img src="<?php echo $baseUrl; ?>/assets/images/media/loader.svg" alt="">
</div>
<!-- Loader -->
<div class="page">
<!-- Start::main-header -->
<?php include 'layouts/components/main-header.php'; ?>
<!-- End::main-header -->
<!-- Start::main-sidebar -->
<?php include 'layouts/components/main-sidebar.php'; ?>
<!-- End::main-sidebar -->
<!-- Start::app-content -->
<div class="main-content app-content">
<?php echo $content; ?>
</div>
<!-- End::app-content -->
<!-- Start::main-modal -->
<?php include 'layouts/components/modal.php'; ?>
<!-- End::main-modal -->
<!-- Start::main-footer -->
<?php include 'layouts/components/footer.php'; ?>
<!-- End::main-footer -->
</div>
<!-- Start::main-scripts -->
<?php include 'layouts/components/scripts.php'; ?>
<!-- End::main-scripts -->
<?php echo $scripts; ?>
<!-- Sticky JS -->
<script src="<?php echo $baseUrl; ?>/assets/js/sticky.js"></script>
<!-- Defaultmenu JS -->
<script src="<?php echo $baseUrl; ?>/assets/js/defaultmenu.min.js"></script>
<!-- Custom JS -->
<script src="<?php echo $baseUrl; ?>/assets/js/custom.js"></script>
<!-- Custom-Switcher JS -->
<script src="<?php echo $baseUrl; ?>/assets/js/custom-switcher.min.js"></script>
</body>
</html>
1. To ensure consistency across all pages, use the base file as the base layout for each PHP page. This allows for central management of shared elements like headers, footers, and navigation. To achieve this, include the following code at the top of each PHP file:
code
<?php include 'layouts/base.php'; ?>
PHP Page View Code (for example, the PHP "example.php" file code)
<!-- This code generates the base URL for the website by combining the protocol, domain name, and directory path -->
<?php
$rootFolder = basename($_SERVER['DOCUMENT_ROOT']);
$baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('/pages', '', dirname($_SERVER['SCRIPT_NAME']));
// Define body class //
$bodyClass = '';
?>
<!-- This code generates the base URL for the website by combining the protocol, domain name, and directory path -->
<!-- This code is useful for internal styles -->
<?php ob_start(); ?>
<?php $styles = ob_get_clean(); ?>
<!-- This code is useful for internal styles -->
<!-- This code is useful for content -->
<?php ob_start(); ?>
<?php $content = ob_get_clean(); ?>
<!-- This code is useful for content -->
<!-- This code is useful for internal scripts -->
<?php ob_start(); ?>
<?php $scripts = ob_get_clean(); ?>
<!-- This code is useful for internal scripts -->
<!-- This code use for render base file -->
<?php include 'layouts/base.php'; ?>
<!-- This code use for render base file -->
- First, unzip the project folder that you received from us.
- Navigate as shown Example: C:\xampp\htdocs\nilova\pages\ Open pages folder will have 181 php pages
- Navigate as shown Example: C:\xampp\htdocs\nilova\pages\layouts\components Open components folder there you will find footer.php, main-header.php, main-sidebar.php, modal,php, scripts.php, styles.php, and switcher.php etc files
- Navigate as shown Example: C:\xampp\htdocs\nilova\pages\layouts\ Open layouts folder there you will find base.php, landing-base.php, custom-base.php files
- Here base.php file is the base file for all the php pages.
- Here custom-base.php file is the base file for all custom pages ex: sign-in-basic.php, sign-up-cover.php, error404.php, error500.php, coming-soon.php, create-password-cover.php and create-password-basic.php etc..,
- Here landing-base.php file is the base file for only landing page ex: landing.php
How to deploy PHP Template or Starterkit on local Servers
Introduction:
In order to use the Nilova Admin template locally, you need to deploy it on a local server or any other hosting server. This step-by-step guide will walk you through the process of setting up the template on local servers using XAMPP, WAMP, or LAMP, which are popular options for local server environments. Please follow the instructions below carefully.
Prerequisites:
- Download and install XAMPP, WAMP, or LAMP based on your preferences and operating system.
- Ensure that you have the Nilova Admin template available on your local machine.
Step 1: Unzip the Project Folder:
Begin by unzipping the project folder you received from us.
Step 2: Open Project File in Your Editor:
Navigate to the root project location path and open the project file in your preferred editor and Project root path in your terminal.
Step 3: Run Commands for Project Output
Open a new terminal and run the following command to install node_modules.
code
npm install
Then, run the following command to build the assets.
code
gulp
Step 4: Install and Set Up XAMPP/WAMP/LAMP
1. Run the installer for XAMPP, WAMP, or LAMP and follow the on-screen instructions to complete the installation process.
2. Once installed, launch the server environment.
Step 5: Locate the Server Root directory.
1. Open the server control panel (XAMPP Control Panel, WAMP Manager, or LAMP Manager).
2. Locate the "Server Root" or "Document Root" directory path Example: For XAMPP, htdocs and For WAMP, www. This is the location where your server files are stored.
Step 6: Deploy the Template
1. Please extract the Nilova Admin template zip folder that you have purchased and place it in the root directory of your preferred server.
2. After extraction, you will find the following folders in your root directory.
3. Here "Nilova " is your main template folder, which contains all the files and folders of the Nilova admin template as shown in the above folder structure.
Step 7: Accessing the Template
1. Open your preferred web browser.
2. Enter "localhost" or "127.0.0.1" in the address bar.
3. Add the template file path to the URL. For example, if the template's main file is named "index.php" and located in a folder named "Nilova/pages/" the URL would be: "localhost/nilova /pages/index.php"
4. If you wish to exclude Nilova from the URL, kindly replicate all files and folders from the Nilova folder and relocate them to the root directory of your preferred server.
5. Once you have effectively transferred all the files and folders to the root directory of your preferred server, please proceed with the following steps.
6. To access the template, launch your preferred web browser and enter the URL. If the main file of the template is named "index.php" and resides within a directory called "pages/" located in the root directory of your server, the URL to access it locally would be: "localhost/pages/index.php"
7. By utilizing the "pages" folder, developers are able to maintain a structured arrangement of .php files, enabling them to navigate and understand the template more effectively.
Additional Notes:
Make sure your local server environment (XAMPP/WAMP/LAMP) is running whenever you want to access the Nilova Admin template.
If you encounter any errors or issues during the setup process, refer to the documentation provided by XAMPP, WAMP, or LAMP, or consult their respective support forums for assistance.
Conclusion:
By following the above steps, you can deploy and access the Nilova Admin template locally using XAMPP, WAMP, or LAMP. Enjoy exploring the template and customizing it to meet your requirements. These are some alternative methods to run PHP template. Each approach has its own advantages and considerations, so choose the one that best suits your requirements and familiarity with the tools.
Purpose of a Starter Kit
Introduction to the PHP Template Starter Kit:
The PHP template starterkit is a resource that helps developers kickstart their PHP web development projects by providing a preconfigured and ready-to-use template. It aims to simplify the initial setup and provide a foundation for building PHP-based websites or applications.
Purpose of the PHP Template Starter Kit:
The purpose of the PHP template starter kit is to save developers time and effort by offering a set of prebuilt files and configurations commonly used in PHP projects. Instead of starting from scratch, developers can leverage the starter kit to quickly set up a project structure that adheres to best practices and industry standards.
Benefits of Using the PHP Template Starter Kit:
The starter kit eliminates the need to set up the basic project structure manually. It provides a well-organized file and folder structure, including commonly used directories for separating code, templates, assets, and configuration files. This allows developers to focus more on implementing business logic rather than spending time on initial setup.
Before using the PHP template starter kit, developers should have a basic understanding of PHP and web development concepts. Additionally, they should have a web server environment (such as Apache or Nginx) and PHP installed on their local machines or a hosting server. Familiarity with HTML, CSS, and JavaScript is also beneficial for frontend development aspects.
Starterkit Overview
You can use the Starterkit if you are creating a new project. It will be time-consuming to use the full admin version for a new project as Nilova have more than 181 php pages.
We have provided all the pre-build layouts like Sidemenu, Header, Footer and Scripts etc in the Starterkit.
For further information or support regarding the template, please contact us using the provided link: https://support.spruko.com/
- Take a quick look at the folder structure of the "Starterkit."
- Integration of your customized PHP pages becomes easy when using the "Starterkit."
- The "Starterkit" provides all the layout components, related assets, and plugins.
- To explore the contents of the "Starterkit," unzip the project folder received after purchase. Navigate to the following paths:
- Example: C:/xampp/htdocs/starterkit/pages/ - Add your PHP pages here if you have more.
- Example: C:/xampp/htdocs/starterkit/layouts/components/ - This folder contains files such as footer.php, main-header.php, main-sidebar.php, scripts.php, and styles.php.
- Example: C:/xampp/htdocs/starterkit/pages/ - This folder contains file such as index.php, files and etc.
Nilova comes with power of Gulp
Gulp is a popular JavaScript task runner that automates common development tasks, such as compiling Sass to CSS, minifying JavaScript and CSS files, optimizing images, and more. Gulp allows developers to define tasks that process files in a project, and then run those tasks automatically when files are changed or when specific commands are issued.for more information about gulp Check here.
Prerequisites:
To install and set up all the prerequisites, follow these steps:
Ensure that Node.js is installed and running on your computer. If Node.js is already installed, you can skip this step. Otherwise, install it on your computer.
If you want to install and use the latest version of Node.js, you can find the necessary instructions on the official website.
To set up gulp, you need to install it globally on your system. Run one of the following commands in your terminal:
code
npm install -g gulp
code
npm install --save-dev gulpInstallation
Please follow below steps to install and setup all pre requisites:
Make sure to have all above pre requisites installed & running in your computer
Open your terminal, go to your folder and enter below command. This would install all required dependencies in node_modules folder.
code
npm installBuild Production File
After completing the above steps, run the following command from the project root (Nilova/) in your terminal or command prompt:
code
gulpNote:-Ensure all required node_modules are installed to run the gulp tasks successfully.
The following command performs several tasks to streamline your development workflow below are some of the task it performs :
- Generates the
libs/ and CSS/ Foldersdirectory
FAQ'S
Step 1:
Go To style.scss (assets/scss/styles.scss )
if you want to change another font-family Go to the site Google Fonts And Select One font Family and import in to styles.scss file
How to Select font Family

Step 2:
And paste Your Selected font-family in style.scss

Step 3:
And add the Your Selected font-family in _variables.scss(assets/scss/_variables.scss)
code
--default-font-family: "Space Grotesk", sans-serif;Note : After changing the styles, you must run the gulp command "gulp" . For more gulp commands, see the gulp page click here.
By default menu icons are lucide icons if you want to change To change Menu icons, open main-sidebar.php page Path:pages/layouts/components/main-sidebar.php and go through app-sidebar section, in that section you will find lucide icons of menu in svg tag, there you can replace previous icon with your icon. Example as shown in below
html
html
Go To "assets/images/brand-logos" folder and replace
your
logo with Previous Logos within in image size.
note: Please don't increase logo sizes. Replace your logo within
given
image size. otherwise the logo will not fit in particular place it
disturbs the template design.
Note : After changing the styles, you must run the gulp command "gulp" . For more gulp commands, see the gulp page click here.
Step1:
To clear LocalStorage loading functions you need to remove
localStorageBackup2() function in custom-switcher.min.js assets/js/custom-switcher.min.js as shown
below
javascript
function localStorageBackup2() {}Step2:
To remove complete LocalStorage saving you need to remove
all localstorage related calling functions like localStorage.setItem,
localStorage.removeItem, localStorage.getItem,
localStorage.clear in
custom-switcher.min.js
assets/js/custom-switcher.min.js file.Below are the some examples to find out.
javascript
localStorage.setItem( );
localStorage.removeItem( );
localStorage.getItem( )
localStorage.clear();
localStorageBackup();Step3:
To remove complete LocalStorage saving you also need to remove
main.js link present in styles.php Path:pages/layouts/components/styles.php as shown below
code
<!-- Main Theme Js -->
<script src="<?php echo $baseUrl; ?>/assets/js/main.js"></script>
Step1:
To remove switcher path remove below code shown in base.php pages/layouts/base.php file
code
<!-- Start::main-switcher -->
<?php include 'layouts/components/switcher.php'; ?>
<!-- End::main-switcher -->Step2:
After removing switcher path in base.php page then change main-header to main-header1 for switcher icon code shown below in base.php page
code
Before :
<!-- Start::main-header -->
<?php include 'layouts/components/main-header.php'; ?>
<!-- End::main-header -->
After :
<!-- Start::main-header -->
<?php include 'layouts/components/main-header1.php'; ?>
<!-- End::main-header -->Step3:
Go to root path: pages/layouts/base.php open "base.php" file and then remove the"custom-switcher.min.js" link as shown below.
code
Remove Switcher Script :
<!-- Custom-Switcher JS -->
<script src="<?php echo $baseUrl; ?>/assets/js/custom-switcher.min.js"></script>Step4:
Finally uncomment below shown code in custom.js file Path:assets/js/custom.js
javascript
/* header theme toggle */
function toggleTheme() {
let html = document.querySelector("html");
}
let layoutSetting = document.querySelector(".layout-setting");
layoutSetting.addEventListener("click", toggleTheme);
/* header theme toggle */Step1:
To remove switcher path remove below code shown in landing-base.php pages/layouts/landing-base.php file
code
<!-- Start::main-switcher -->
<?php include 'layouts/components/landingpage/switcher.php'; ?>
<!-- End::main-switcher -->Step2:
After removing switcher path in landing-base.php page then change main-header to main-header1 for switcher icon code shown below in landing-base.php page
code
Before :
<!-- Start::main-header -->
<?php include 'layouts/components/landingpage/main-header.php'; ?>
<!-- End::main-header -->
After :
<!-- Start::main-header -->
<?php include 'layouts/components/landingpage/main-header1.php'; ?>
<!-- End::main-header -->Step3:
Now then change main-sidebar to main-sidebar1 for switcher icon code shown below in landing-base.php page
code
Before :
<!-- Start::main-sidebar -->
<?php include 'layouts/components/landingpage/main-sidebar.php'; ?>
<!-- End::main-sidebar -->
After :
<!-- Start::main-sidebar -->
<?php include 'layouts/components/landingpage/main-sidebar1.php'; ?>
<!-- End::main-sidebar -->Please follow the below steps to change Primary Color
Step 1 :
To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below
Rootpath : _variables.scss (assets/scss/_variables.scss )
Note : After changing the styles, you must run the gulp command "gulp" . For more gulp commands, see the gulp page click here.
Please follow the below steps to change Dark body Color
Step 1 :
Make sure the theme is set completely to dark mode by adding the following attributes to the html tag data-theme-mode="dark" data-header-styles="dark" data-menu-styles="dark"
Step 2 :
To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below
Rootpath : _variables.scss (assets/scss/_variables.scss )
Step 3 :
Also Change the following variable colors to the desired theme background accordingly in [data-theme-mode="dark"]
--light-rgb : --form-control-bg : --input-border : --gray-3 :Note : After changing the styles, you must run the gulp command "gulp" . For more gulp commands, see the gulp page click here.
Credit's
NPM Plugins & Reference Links
All plugins runs through npm.
If you want new plugins : Install new plugin from npm then run
gulp command.
Icons Credit
| Icons | References |
|---|---|
| Bootstrap Icons | https://icons.getbootstrap.com/ |
| Boxicons | https://boxicons.com/ |
| Remix Icons | https://remixicon.com/ |
| Feather Icons | https://feathericons.com/ |
| Tabler Icons | https://tabler-icons.io/ |
| Line Awesome Icons | https://icons8.com/line-awesome |
| Phosphor Icons | https://phosphoricons.com/ |
Images Credit
| Images | References |
|---|---|
| Vecteezy | https://www.vecteezy.com/ |
| Iconscount | https://iconscout.com/ |
| Unsplash | https://unsplash.com/ |
| Png Tree | https://pngtree.com/ |
| flaticon | https://www.flaticon.com/authors/flat-icons |
| freepik | https://www.freepik.com |
Fonts Credit
| Font | References |
|---|---|
| Google Fonts | https://fonts.google.com/ |
Sidemenu Icons
| Icon | References |
|---|---|
| lucide Icons | https://lucide.dev/icons/ |
Switcher styles
(Root:pages/layouts/base.php)
html
<html lang="en" dir="ltr" data-nav-layout="vertical" data-theme-mode="light" data-header-styles="light" data-menu-styles="dark" data-width="fullwidth" data-toggled="close">html
data-theme-template="default" data-header-styles="light" data-menu-styles="dark"
html
data-theme-template="fusion" data-header-styles="transparent" data-menu-styles="light"
html
data-theme-template="modern" data-header-styles="gradient" data-menu-styles="light"
html
data-theme-template="saas" data-header-styles="transparent" data-menu-styles="dark"
html
data-theme-template="neon" data-header-styles="transparent" data-menu-styles="dark" data-width="default"
html
data-theme-template="galaxy" data-theme-mode="dark" data-header-styles="dark" data-menu-styles="dark"
html
data-theme-template="elegant" data-header-styles="transparent" data-menu-styles="dark"
html
data-theme-template="flat" data-header-styles="light" data-menu-styles="light" data-vertical-style="doublemenu"
html
data-theme-template="prism" data-header-styles="transparent" data-menu-styles="transparent"
html
data-theme-template="retro" data-header-styles="transparent" data-menu-styles="dark" data-vertical-style="detached"
html
data-theme-template="frost" data-header-styles="transparent" data-menu-styles="gradient"
html
data-theme-template="nova" data-header-styles="light" data-menu-styles="dark"
html
data-theme-mode="light" data-header-styles="light" data-menu-styles="light"
html
data-theme-mode="dark" data-header-styles="dark" data-menu-styles="dark"
html
dir="ltr"
html
dir="rtl"
html
data-nav-layout="vertical"
html
data-nav-layout="horizontal" data-nav-style="menu-click"
html
data-page-style="regular"
html
data-page-style="classic"
html
data-page-style="modern"
html
data-width="default"
html
data-width="fullwidth"
html
data-width="boxed"
html
data-header-position="fixed"
html
data-header-position="scrollable"
html
data-vertical-style="closed"
html
data-vertical-style="icontext"
html
data-vertical-style="overlay"
html
data-vertical-style="detached"
html
data-vertical-style="doublemenu"
html
loader="enable"
html
loader="disable"
html
data-menu-styles="light"
html
data-menu-styles="dark"
html
data-menu-styles="color"
html
data-menu-styles="gradient"
html
data-menu-styles="transparent"
html
data-header-styles="light"
html
data-header-styles="dark"
html
data-header-styles="color"
html
data-header-styles="gradient"
html
data-header-styles="transparent"
html
data-bg-img="bgimg1"
html
data-bg-img="bgimg2"
html
data-bg-img="bgimg3"
html
data-bg-img="bgimg4"
html
data-bg-img="bgimg5"