How yuri-gabriel/ipsilonlibs works
IpsilonLibs is a PHP framework/library providing kernel startup, annotation-driven routing, HTTP request/response utilities, model metadata and database access, plus view rendering and command-based scaffolding. The principal workflow is an HTTP request matched to a discovered controller route, parameterized and dispatched, then represented as a response. A separate persistence workflow derives table schemas from annotated models and exposes repository/query-builder operations. Edges reflect shown calls, indexed references, or README claims; unsampled behavior is omitted or marked unverified.
Main entry points: RoutesKernel.php Route discovery · RequestListener.php Request dispatch · ModelKernel.php Schema generation · Kernel.php Kernel startup
Components 23
Kernel and scaffolding
- Kernel startup
Kernel/Kernel.php - Class loader
Kernel/ClassLoader.php - Scaffold commands
Kernel/Command/Create.php - Scaffold templates
Kernel/Command/FileContent.php
Routing and HTTP
- Route discovery
Kernel/Router/RoutesKernel.php - Request dispatch
Kernel/Router/RequestListener.php - Route definition
Kernel/Router/Route.php - Route method
Kernel/Router/RouteMethod.php - Parameter parsing
Kernel/Router/ParamParser.php - HTTP request
Libs/Http/Request.php - HTTP response
Libs/Http/Response.php
Annotations
- Controller annotation
Libs/Annotations/Controller.php - Mapping annotation
Libs/Annotations/Mapping.php - Interceptor metadata
Libs/Annotations/Interceptors.php
Models and database
- Schema generation
Kernel/Model/ModelKernel.php - Table entities
Kernel/Model/Entity.php - Repository
Libs/DataBase/Repository.php - Query facade
Libs/DataBase/Query/QueryBuilder.php - SQL builders
Libs/DataBase/Query - Database connection
Libs/DataBase/Conection.php
View rendering
- View renderer
Libs/Engine/Render.php
Other components
- Application
- Database
Connections 24
- Kernel startup → Class loader: loads classes
Kernel/Kernel.php - Kernel startup → Schema generation: starts kernel
Kernel/Kernel.php - Kernel startup → Route discovery: starts kernel
Kernel/Kernel.php - Application → Kernel startup: starts
- Scaffold commands → Scaffold templates: gets template
Kernel/Command/Create.php - Route discovery → Class loader: discovers controllers
Kernel/Router/RoutesKernel.php - Route discovery → Controller annotation: checks annotation
Kernel/Router/RoutesKernel.php - Route discovery → Mapping annotation: reads mappings
Kernel/Router/RoutesKernel.php - Route discovery → Interceptor metadata: reads interceptors
Kernel/Router/RoutesKernel.php - Route discovery → Route definition: creates routes
Kernel/Router/RoutesKernel.php - Route discovery → Request dispatch: dispatches to
Kernel/Router/RoutesKernel.php - Request dispatch → Parameter parsing: parses parameters
Kernel/Router/RequestListener.php - Parameter parsing → HTTP request: creates request
Kernel/Router/ParamParser.php - Request dispatch → Route definition: matches routes
Kernel/Router/RequestListener.php - Request dispatch → HTTP response: builds response
Kernel/Router/RequestListener.php - Schema generation → Class loader: finds models
Kernel/Model/ModelKernel.php - Schema generation → Table entities: builds table entities
Kernel/Model/ModelKernel.php - Schema generation → Database connection: runs schema SQL
Kernel/Model/ModelKernel.php - Repository → Query facade: creates facade
Libs/DataBase/Repository.php - Repository → Database connection: runs queries
Libs/DataBase/Repository.php - Query facade → SQL builders: creates operation builders
Libs/DataBase/Query/QueryBuilder.php - Database connection → Database: queries
- Application → Repository: uses persistence
- Application → View renderer: renders views