RU EN
Get started
PHP 8 MVC · zero dependencies

PHP websites —
easy and fast

olala is a minimalist MVC framework. A four-file core with no Composer, no template engine and no magic: a router, controllers, views and a set of modules a website actually needs.

$ cd olala && sh first_start.sh
A surprised pin-up girl with a polka-dot bow: “O-la-la!”

O-la-la!Only 4 files?

4 filescore: kernel, router, controller, view
≈ 330lines of code in the core
≈ 10 KBthe whole core weighs
0external dependencies

Why olala

Nothing extra between the request and the response

The framework doesn't hide PHP behind abstractions: you write ordinary classes and ordinary templates, and olala simply wires them together.

Lightweight

You can read the whole core in one evening. No YAML configs, dependency containers or code generation — just PHP.

  • the core is about 330 lines
  • install by copying a folder
  • no Composer, no vendor/

Performance

A request goes straight through: URL → controller → template. There are simply no intermediate layers to waste time.

  • templates are plain PHP under OPcache
  • classes are loaded only on demand
  • lazy DB connection, cache in RAM

MVC pattern

Modules with controllers and views, shared page layouts and models — a familiar structure with no surprises.

  • site code in site/, the core in olala/
  • layouts and partials
  • models are plain PHP classes

Vibe coding

Minimal code — fewer tokens spent

The olala codebase is so compact that any LLM can read the entire framework in a single pass and immediately understand how it works. Your assistant doesn't have to dig through vendor/ and thousands of files — you pay for your site's tokens, not for studying the framework.

  • Fewer tokens. The whole framework fits into the model's context with plenty of room to spare.
  • Instant understanding. The conventions are simple: URL → module, controller, action. The model knows right away where a new file belongs.
  • Fewer mistakes. No magic and no hidden layers: the AI sees all the code your site runs on instead of guessing the API from memory.
Core ≈ 3–4K tokens
The whole framework with modules ≈ 20K tokens

33 files, about 60 KB of code. A rough estimate that depends on the model's tokenizer.

Prompt for your assistant
Read the olala/ folder — that's the entire framework.
Add a catalog module: a product list at /catalog and a product page at /catalog/:slug.

Routing

The page URL tells you exactly where the code lives

No route tables for regular pages: a three-part URL points unambiguously to a module, a controller and an action.

olala.glenn.ru / blogmodule / postcontroller / showaction
Filesite/modules/blog/controllers/postController.php
ClassBlogPostController
MethodshowAction()
Templatesite/modules/blog/views/show.php

How it works

A request in five steps

Web server

Anything that isn't a file is sent to index.php.

Kernel

kernel::init() turns on autoloading, then config.php is read.

Router

Parses the URL and loads the controller file.

Controller

The action prepares data and returns $this->render().

Layout

The result goes into the layout's $content and is sent to the browser.

Everything at hand

A clear structure with batteries included

Your code lives separately from the framework. Common tasks already have modules — just import them with use and they load themselves.

olala.glenn.ru/
├── index.php        # entry point
├── config.php       # settings, routes
├── .htaccess
├── olala/           # framework core
└── site/            # your site
    ├── layouts/
    │   └── default/
    │       └── index.php  # layout
    ├── models/        # models
    └── modules/
        └── blog/
            ├── controllers/
            └── views/

Your first site in five minutes

Copy the framework, run the installer and add your first page. The step-by-step guide walks you through it.

  1. Download olala
  2. Run first_start.sh
  3. ./create module hello