kancilphp/framework

KancilMinimalis PHP Framework - KISS, minimal dependencies

Maintainers

Package info

github.com/kancilphp/framework

pkg:composer/kancilphp/framework

Transparency log

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.16.0 2026-06-09 11:45 UTC

This package is auto-updated.

Last update: 2026-07-09 12:02:42 UTC


README

KISS PHP framework with pre-router caching and minimal dependencies.

Features

  • Pre-router cache — cache check before framework bootstrap, ETag + 304 support
  • Session-aware — cache keys include user ID, no stale user data served
  • Module system — self-contained Modules with Route/Controller/Model
  • Middleware — per-route middleware with named groups
  • No bloat — no service container, no facade, no artisan

Requirements

  • PHP >= 8.3

Install

composer require kancilphp/framework

Structure

src/
├── App.php              → Route resolver + dispatcher
├── Auth.php             → JWT + password-based auth
├── Cache.php            → File / APCu / Redis
├── Config.php           → Simple key-value config
├── DB.php               → PDO wrapper with query builder
├── Gate.php             → Pre-router pipeline (error, session, cache)
├── Middleware.php       → Middleware runner
├── Request.php          → Input, params, method
├── Response.php         → JSON, HTML, redirect, error pages
├── Router.php           → URI matching + dispatch
├── Str.php              → String helpers
├── View.php             → Template rendering
├── Drivers/
│   ├── MySQL.php
│   └── PostgreSQL.php
└── helpers.php          → Global helpers (csrf, url, env, base64)

Changelog

See CHANGELOG.md.

License

MIT