Ana Sayfa / Kod ve Scriptler / Lumina Foundation

Lumina Foundation

Hafif PHP SaaS başlangıç kiti — kimlik doğrulama, gösterge paneli, roller ve yönetici paneli. Composer yok. Framework yok. Herhangi bir paylaşımlı sunucuda çalışır.

  • Yayın tarihi3 Temmuz 2025
  • Nerede çalışırPHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3
  • VeritabanıMySQL 5.7+ or MariaDB 10.3+
  • Paket içeriği.php, .css, .sql, JavaScript .js
  • Son güncelleme26 Mayıs 2026
  • Canlı demoVar
Lumina Foundation

Overview

Build Your SaaS Product on a Foundation That Actually Works

Most PHP starter kits give you a UI template with placeholder data and a half-wired backend. Lumina Foundation is different. Every page in the dashboard reads from and writes to the database. Every form submits to a real controller. Every action is logged. This is not a mockup. It is a working foundation.

The full Demo: https://lumina.pcpartify.com/

Features

FEATURE LIST

Authentication & Access

  • User registration with password hashing
  • Login with session regeneration
  • Logout
  • Password reset via DB-stored token (expiry-aware)
  • Invite link generation and redemption
  • CSRF protection on all POST routes
  • Session-based authentication with secure cookie flags
  • Middleware: auth, admin, guest, csrf, rateLimit, cors

Dashboard

  • Live task manager (create / complete / delete)
  • Real disk usage via PHP system functions
  • Active session count from DB
  • Invite widget with copyable link
  • Dashboard CSV export
  • Share link generation

Analytics

  • Automatic page visit tracking (URL, IP, User Agent)
  • Total visits, unique IPs, registered user count
  • Chart.js bar/line charts
  • Switchable timeframes: 7d / 30d / 1yr

Notifications

  • In-app notification system (DB-backed)
  • Unread badge (live count from DB)
  • Mark all as read
  • Programmatic notification creation from controllers

Profile & Security

  • Edit name, email, gender
  • Avatar upload (MIME-validated, stored on server)
  • Avatar shown in navbar
  • Change password (current password verification)
  • Active session info (real Session ID, browser detection, IP)
  • Delete account (with confirmation and cascade)

Activity Log

  • Full activity trail written to DB
  • Date filter
  • CSV export (with IP address, supports date filtering)

Admin Panel

  • User list and delete
  • Role management (create, delete custom roles)
  • Per-role permission management (JSON-stored)
  • System settings (all fields DB-backed)
  • Maintenance mode (real request interception)
  • App name dynamically applied sitewide

Technical

  • Custom MVC router (GET, POST, PUT, DELETE + params)
  • PDO Singleton with prepared statements
  • .env file for environment configuration
  • .htaccess directory and file protection
  • Error pages (404, 500, 503 Maintenance)
  • Rate limiting middleware (session-based)
  • Security headers (PHP + .htaccess)
  • Dynamic primary color from DB settings

Requirements

RequirementDetail
PHP8.0 or higher (uses named arguments, str_contains, match)
Web ServerApache with mod_rewrite enabled (.htaccess required)
DatabaseMySQL 5.7+ or MariaDB 10.3+
PDO ExtensionMust be enabled (PDO + PDO_MySQL driver)
FileInfo ExtensionRequired for avatar MIME-type validation (finfo_open)
Shared Hosting✅ Fully compatible — no Composer, no CLI tools required
Local Development✅ Tested on XAMPP; works on WAMP, Laragon, Valet
Composer❌ Not required
Node.js / npm❌ Not required
BrowserAny modern browser; ES6+ required for theme toggle; Chart.js served via CDN