Larafony Framework Logo

Larafony Framework

Modern PHP 8.5 framework — built for clarity, not complexity.

Key Features

Everything you need to build modern PHP applications

PSR-Compliant

Built on PSR-7 (HTTP), PSR-11 (Container), PSR-15 (Middleware), and PSR-3 (Logger). Full interoperability with any PSR-compliant library.

Type-Safe DTOs

Leverage PHP 8.5 property hooks and attributes for automatic validation. Type-safe data transfer with asymmetric visibility.

Blade Templates

Powerful, elegant templating engine with components, slots, and custom directives. Write clean, maintainable views.

Attribute Routing

Define routes with PHP attributes directly on controllers. No configuration files, just clean, self-documenting code.

Active Record ORM

Eloquent-inspired ORM with relationships, query builder, migrations, and seeders. Database operations made simple.

PHP 8.5 Pipes

Clean data transformation pipelines using the pipe operator. Transform data with readable, functional code.

Getting Started

Up and running in seconds

Create a new project

composer create-project larafony/skeleton my-app

Navigate to your project

cd my-app

Start the development server

php8.5 -S localhost:8000 -t public
Requirements: PHP ≥ 8.5, Composer, MySQL/PostgreSQL/SQLite

Philosophy

The framework you can truly understand

"The best framework is the one you can replace piece by piece — because you understand it completely."
Production-Ready from Day One

Not a toy or tutorial framework. Built for real-world applications with high quality standards and full test coverage.

Framework-Agnostic Mindset

Use Blade, Twig, or Inertia.js. Swap components freely. No vendor lock-in, just pure PHP flexibility.

Performance-First Architecture

Minimal dependencies, optimized pipelines, and efficient patterns. Fast by design, not by accident.

Readable, Modern PHP Code

Clean architecture, SOLID principles, and PHP 8.5 features. Code you'll be proud to maintain.