How albinondjonale/jc works
JC is a small PHP web framework. Its main workflow is application setup, route registration, request handling, middleware and route callbacks, then response generation for the client. The README also documents template rendering and several response types. Other supported capabilities include authentication pages and middleware, database models and query construction, migrations, background queues, realtime requests, validation, and logging. Some runtime sections were not sampled, so links to those features are limited to explicit README or source evidence.
Main entry points: qbuilder.php Query builder · index.php Application runner · response.php HTTP responses · helpers.php Framework helpers
Components 20
Web runtime
- Application runner
jc/index.php - Route registry
jc/index.php - Request parsing
jc/http/request.php - Middleware
jc/middleware/middleware.php - HTTP responses
jc/http/response.php
Identity and rendering
- Auth pages
jc/pages/pages.php - Auth middleware
jc/middleware/middleware.php - Template rendering
jc/http/response.php - Validation and auth
jc/util/util.php
Data management
- ORM models
jc/model/model.php - Query builder
jc/qbuilder/qbuilder.php - Schema migrations
jc/migration.php - Migration definitions
infrastructure/migrations.php - SQL database
Async and utilities
- File-backed queue
jc/queue/queue.php - Queue writer
jc/queue/push.php - Realtime requests
jc/http/request.php - Framework helpers
jc/helpers.php - File logs
jc/storage/log
Other components
- Browser client
Connections 21
- Browser client → Application runner: sends request
README.md - Application runner → Route registry: runs routes
README.md - Route registry → Request parsing: receives request
README.md - Route registry → Middleware: applies middleware
jc/index.php - Route registry → HTTP responses: returns response
README.md - HTTP responses → Browser client: sends response
README.md - Middleware → Auth middleware: provides auth
jc/middleware/middleware.php - Auth middleware → Validation and auth: checks credentials
jc/middleware/middleware.php - Auth pages → Validation and auth: validates login
jc/pages/pages.php - Auth pages → HTTP responses: returns responses
jc/pages/pages.php - HTTP responses → Template rendering: renders templates
jc/http/response.php - ORM models → Query builder: builds queries
jc/model/model.php - Schema migrations → Query builder: builds schema queries
jc/migration.php - Migration definitions → Schema migrations: runs migrations
infrastructure/migrations.php - Query builder → SQL database: executes SQL
jc/qbuilder/qbuilder.php - Framework helpers → Query builder: creates connection
jc/helpers.php - Query builder → File-backed queue: queues SQL
jc/qbuilder/qbuilder.php - File-backed queue → Queue writer: starts writer
jc/queue/queue.php - Application runner → Realtime requests: constructs request
jc/index.php - Application runner → Framework helpers: writes logs
jc/index.php - Framework helpers → File logs: appends entries
jc/helpers.php