A minimalist, PHP-based, CMS-like no-database (flat-file) website starter kit for quickly building static or semi-dynamic websites.
Designed for simplicity, flexibility, and speed — this lightweight structure helps you create and manage a website without the need for any database.
- No Database – Uses a simple flat-file PHP structure (no MySQL, Maria or SQLite required).
- Easy Configuration – Fully managed through a single
config.phpfile. - Customizable – Effortlessly add or edit sections such as Home, About, Services, or Contact.
- Lightweight & Fast – Minimal dependencies, optimized for quick deployment.
- PHP 7.0 or higher
- Any web server with PHP support (Apache, Nginx, LiteSpeed, etc.)
- Basic understanding of HTML, CSS, and PHP
- Download or clone this repository.
- Upload the files to your hosting or local server.
- Configure your website via
/inc/config.php. - Done — your site is live!
Example: Creating a partners page.
- Create a new file named
partners.phpin your project root. - Paste the following content:
<?php
define('DIR_ACCESS', true); // Allow access for visitors
// Include the main configuration
include_once __DIR__ . '/inc/config.php';
// Set up basic page variables
$url = rtrim($cfg_mainurl, '/') . '/partners';
$title = $cfg_name . " - Partners";
$desc = "Partners page description";
// Include URL handler and layout components
include_once __DIR__ . '/inc/url.php';
include_once __DIR__ . '/inc/head.php';
include_once __DIR__ . '/inc/navbar.php';
?>
<!-- Content Start -->
<!-- HTML CONTENT GOES HERE -->
<!-- Content End -->
<?php include_once __DIR__ . '/inc/footer.php'; ?>© 2025 anefha. All rights reserved under MIT License.
