AMVFC Pattern · PHP 8.2+

Build faster with CodeGS Framework

Simple, lightweight PHP framework with AMVFC pattern. No magic. No autoload overhead. Just clean, direct PHP.

// AMVFC — Simple routing
// index.php?controller=Blog&function=index

class BlogController extends BaseController
{
  public function index(): void
  {
    $this->requireAdmin();
    $posts = $this->blog->get_all();
    $this->view('admin/blog', compact('posts'));
  }
}

0ms

No Autoload Overhead

16+

DB Tables Ready

30+

Helper Functions

v2.0

Latest Version

Everything you need

Built-in tools so you can focus on building, not configuring.

Fast & Lightweight

Direct include-based loading. No Composer autoload overhead. Starts instantly.

Secure by Default

CSRF protection, bcrypt passwords, prepared statements, XSS escaping built-in.

AMVFC Pattern

Assets, Model, View, Features, Controller. Clean separation of concerns.

BaseController OOP

Extend BaseController for any module. view(), requireAdmin(), csrf() ready.

QueryBuilder

Fluent query builder with where(), orderBy(), limit(), insert(), update(), delete().

CLI Tool

php codegs make:controller, make:model, serve — generator commands built-in.

From the Blog

Insights, updates and tutorials from the CodeGS team.