Clean Controllers, Models, and Views with automatic PSR-4 autoloading. One class, one responsibility.
Veldora PHP Framework
The expressive, zero-dependency core PHP framework designed for speed, simplicity, and full code ownership. Native templating, ActiveRecord ORM, fast routing, CLI scaffolding, and a complete UI component suite.
<?php
// routes/web.php — Expressive routing with groups, middleware & route parameters
$router->get('/', [HomeController::class, 'index']);
$router->get('/posts/{slug}', [PostController::class, 'show']);
// Authenticated route group
$router->group(['middleware' => ['auth']], function ($r) {
$r->get('/dashboard', [DashboardController::class, 'index']);
$r->get('/profile', [ProfileController::class, 'edit']);
$r->put('/profile', [ProfileController::class, 'update']);
});
// Auth endpoints
$router->post('/login', [AuthController::class, 'login'])->middleware(['guest']);
$router->post('/logout', [AuthController::class, 'logout'])->middleware(['auth']);
A framework that keeps code readable
Veldora gives you a structured MVC project where each file has a clear purpose. No hidden service containers, no auto-magic resolution that breaks silently — just straightforward PHP classes you can open and read.
- No magic strings. Everything is type-hinted and IDE-friendly.
- You own the code. Components live in your project, not in vendor.
- Batteries included. Events, queues, mail, cache, storage — all built in.
- Familiar syntax. Laravel-like conventions — readable by any PHP dev, no framework-specific knowledge needed.
- PHP 8.2+ throughout. Strict types, constructor promotion, enums, and readonly properties used consistently.
# Create a new project
composer create-project veldora/veldora my-app
cd my-app
# Scaffold authentication in seconds
php veldora make:auth
php veldora migrate
# Start the dev server
php veldora serve
# → Listening on http://localhost:8000
Everything included in a single install
Routing, ORM, auth, CLI, mail, queues, and UI components — all part of the framework with no extra packages needed.
Blade-inspired @directives, {{ $variable }}, layout inheritance, and reusable components.
Scaffold anything with php veldora make:* — controllers, models, migrations, auth, jobs, and more.
Session guards, @auth / @guest directives, CSRF protection, and a complete login/register scaffold.
Fluent query builder, mass assignment, type casting, relations, pagination, and lifecycle hooks.
Button, Tabs, Modal, Datatable, Sidebar, Rating and 35 more. Add them with php veldora add button modal.
SMTP-powered Mailable classes, background job queues with retry logic and a persistent database driver.
Before/after hooks, CSRF protection, rate limiting, signed URLs, and email verification — all chainable.
PHPUnit integration with HTTP helpers, model factories, and full assertion suite — 87 tests ship with the framework.
Frequently Asked Questions
Quick answers to the most common questions about Veldora.
What is Veldora and who is it for?
How does Veldora handle CLI commands without Symfony Console?
executeDirect() execution. It runs with zero external console dependencies instantly, while also offering full Symfony Console support if installed.
How do I add UI components to my project?
php veldora ui:list to view all 41+ available components, and install them into your project using php veldora add button card modal.
How is authentication set up?
php veldora make:auth and then php veldora migrate. This creates complete Login, Registration, Password Reset, Profile, and Verification views, controllers, and database migrations.
Set up a new project in under a minute
Create a full project with auth, migrations, and templates already wired using Composer or npx. Start building immediately.
# Option 1: Using Composer
composer create-project veldora/veldora my-app
cd my-app
# Option 2: Using npx
# npx create-veldora-app my-app
# Run migrations & scaffold auth
php veldora migrate
php veldora make:auth
# Start the dev server
php veldora serve