PHPackages                             vortexphp/framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vortexphp/framework

ActiveLibrary

vortexphp/framework
===================

Lightweight PHP application stack (app/, engine/, config, assets)

v0.7.0(today)115↑2900%1MITPHPPHP ^8.2

Since Apr 3Pushed todayCompare

[ Source](https://github.com/vortexphp/framework)[ Packagist](https://packagist.org/packages/vortexphp/framework)[ RSS](/packages/vortexphp-framework/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (3)Versions (8)Used By (1)

Vortex
======

[](#vortex)

Lightweight PHP application stack: HTTP routing, Twig views, PDO database layer, mail, cache, config, console, events, validation, and i18n.

Install
-------

[](#install)

```
composer require vortexphp/framework
```

Requires **PHP 8.2+**, **ext-mbstring**, **ext-pdo**, and **Twig 3**. For SMTP with TLS/SSL, install **ext-openssl** (see `composer.json` suggest).

Project layout
--------------

[](#project-layout)

The framework expects a **base path** (your app root) with at least:

- `config/` — configuration read by `Vortex\Config\Repository`
- `config/paths.php` (optional) — return `['migrations' => '…']` relative to the project root; default is `db/migrations`
- `app/Routes/*.php` — HTTP route files (`require`d in order; register via `Vortex\Routing\Route`; optional `->name('key')` + `route('key', $params)`)
- `app/Routes/*Console.php` — console route files (return `callable(ConsoleApplication): void`)
- `assets/views/` — Twig templates (used by `Vortex\Application::boot()`)
- `storage/cache/twig/` — optional Twig cache when `app.debug` is false

Quick start
-----------

[](#quick-start)

```
