Download the PHP package daranger/php-starter without Composer
On this page you can find all versions of the php package daranger/php-starter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daranger/php-starter
More information about daranger/php-starter
Files in daranger/php-starter
Package php-starter
Short Description A modern PHP starter kit with MVC.
License MIT
Homepage https://github.com/daranger/php-starter
Informations about the package php-starter
PHP Starter Framework
A modern, lightweight PHP starter kit and micro-framework with a built-in admin panel, MVC architecture, and Docker support. Designed as a robust foundation for building secure and scalable web applications without the overhead of heavy frameworks.
Core Features & Architecture
🛠️ Custom MVC Micro-framework
Built from scratch with zero heavy dependencies to keep the application blazing fast:
- Routing Engine — Supports GET, POST, route groups, prefixes, and parameter extraction.
- Dependency Injection Container — Intelligent container featuring autowiring via Reflection. Resolves dependencies recursively and supports singletons (
getInstance()->bind(...)). - Middleware Pipeline — Clean request filtering before hitting controllers. Includes built-in
AuthMiddleware,AdminMiddleware(with dynamic IP whitelisting), andCsrfMiddleware.
🛡️ Security & Authentication
- Secure Sessions — Stored in Redis with automatic TTL for performance and security.
- CSRF Protection — Integrated middleware automatically generates and validates
_csrftokens on every POST request. - Authentication — Bcrypt hashed passwords, rate-limiting against brute force, and ready-to-use 2FA logic.
- Role-based Access Control (RBAC) — Distinct permissions for regular users and administrators.
🌐 Localization (i18n)
- Built-in Translation System — A robust helper
__('key')maps dictionary files from thelang/directory to strings in the current user's locale. - Session & DB tied — Language preferences persist across sessions.
🎨 Themes & UI
- Dark & Light Modes — Native support for theme switching out of the box.
- Dynamic Settings — App name, mail host, UI settings are driven by the
settingsdatabase table, configurable directly from the Admin Panel instead of hardcoded.envfiles.
📋 Logging & Telemetry
- Database & File Logging — User actions (
user_logs) and daemon background jobs (daemon_jobs_log) are tracked. - System Dashboard — Built-in
SystemServicethat tracks server metrics (RAM, Disk, CPU Load Average, Uptime) and outputs them to the admin dashboard.
🐳 Docker Ready
- Comes with a complete
docker-compose.ymlfor instant local development. - Bundles Nginx, PHP-FPM 8.2, MySQL 8.0, and Redis 7.2.
Stack
| Layer | Technology |
|---|---|
| Language | PHP 8.1+ |
| Web server | Nginx (via Docker) / Apache |
| Database | MySQL 8.0 / MariaDB |
| Cache / Sessions | Redis (Predis) |
| PHPMailer | |
| Framework | Custom MVC (Container, Router, Middleware) |
| Tests | PHPUnit 11 |
Requirements
- PHP 8.1+ (if running bare-metal)
- Composer
- MySQL 8.0+ or MariaDB
- Redis server
- Or simply Docker & Docker Compose for local development.
Installation via Composer
The easiest way to start a new project is via Composer:
Composer will automatically clone the repository, remove the git history, and install all dependencies.
Installation via Docker (Alternative)
-
Clone the repository
-
Setup environment
-
Start the containers
-
Install PHP dependencies
-
Run migrations & seed
- Access the application
Open your browser and navigate to
http://localhost.
Testing
The framework includes a comprehensive test suite powered by PHPUnit.
License
This project is licensed under the MIT License — see the LICENSE file for details.
All versions of php-starter with dependencies
predis/predis Version ^3.5
robthree/twofactorauth Version ^3.0
chillerlan/php-qrcode Version ^6.0
phpmailer/phpmailer Version ^7.1