PHPackages                             vireo/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. [Framework](/categories/framework)
4. /
5. vireo/framework

ActiveLibrary[Framework](/categories/framework)

vireo/framework
===============

Modern PHP framework implementing Vertical Slice Architecture with Inertia.js integration. Zero external dependencies, auto-discovery, and built-in RBAC.

v1.0.10(3mo ago)1221MITPHPPHP ^8.4

Since Feb 1Pushed 3mo agoCompare

[ Source](https://github.com/mrzh4s/Vireo-Framework)[ Packagist](https://packagist.org/packages/vireo/framework)[ Docs](https://github.com/mrzh4s/vireo-framework)[ RSS](/packages/vireo-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)Used By (1)

Vireo Framework
===============

[](#vireo-framework)

A modern PHP framework implementing **Vertical Slice Architecture** with Inertia.js integration. Zero external dependencies, auto-discovery, and built-in RBAC.

Features
--------

[](#features)

- **Vertical Slice Architecture** - Organize code by feature, not by layer
- **Inertia.js Integration** - First-class support for React, Vue, and Svelte
- **Minimal Dependencies** - Only requires `symfony/mailer` for email
- **Built-in RBAC** - Role-based access control with hierarchy and attribute-based permissions
- **Fluent Query Builder** - Intuitive ORM with support for MySQL, PostgreSQL, and SQLite
- **PostGIS/Spatial Support** - Built-in spatial query builder for geospatial applications
- **Migration System** - Database versioning with rollback support
- **CLI Tools** - Powerful command-line interface for scaffolding and management
- **Validation** - Comprehensive validation rules with custom rule support
- **Session &amp; Cookie Management** - Secure session handling out of the box
- **CSRF Protection** - Built-in cross-site request forgery protection
- **Blade-like Views** - Familiar templating syntax
- **File Storage** - Local and FTP storage drivers
- **Logging** - Configurable logging with multiple handlers

Requirements
------------

[](#requirements)

- PHP 8.4 or higher
- Composer

Installation
------------

[](#installation)

```
composer require vireo/framework
```

Quick Start
-----------

[](#quick-start)

### Routing

[](#routing)

Routes are automatically discovered from your `pages` directory following the Vertical Slice Architecture pattern.

```
// Using helper functions
route('users.show', ['id' => 123]);  // Generate URL
redirect('dashboard');                // Redirect to named route
```

### Controllers

[](#controllers)

```
