Packages from genai · Transparency log

  • PHP

    genai/attribute

    Build-time attribute scanner that dispatches custom attributes to your handlers. PHP 8 only; it emits no runtime code itself — your handlers feed the PHP 5.3-safe *Register dumpers.

  • PHP

    genai/boot

    Application kernel with Composer-based package auto-discovery (Laravel style): reads each installed component's extra.genai.processors so the app never hand-lists them, then boots the compiled app into a ready Dispatcher. Build-time uses PHP 8; the Kernel + runtime boot are PHP 5.3-safe.

  • PHP

    genai/console

    CLI layer (the twin of genai/web): a #[Command] attribute, a build-time CommandProcessor that compiles commands.php, and a PHP 5.3-safe Console runner that maps $argv to a command bean. Shares the same compiled container as the web front.

  • PHP

    genai/container

    Minimal PSR-11 dependency-injection container, compatible with PHP 5.3.29

  • PHP

    genai/di

    Popular DI attributes (#[Service], #[Repository], #[Configuration], #[Bean], #[Value]) and their processor, targeting GenAI\Container. Build-time (PHP 8).

  • PHP

    genai/dto

    DTO support: a #[Dto] attribute, a build-time processor that compiles each DTO's getters into a JSON map, and a PHP 5.3-safe Serializer that turns DTOs (and nested/arrays of them) into arrays via that map — no runtime reflection, no toArray(). Standalone: no runtime dependencies.

  • PHP

    genai/google-form

    Submit data to a Google Form from the server: POST to the form's formResponse endpoint, mapping your fields to entry.NNN ids. Best-effort with a short timeout so it never blocks the request (it returns false rather than throwing). curl with a stream fallback. PHP 5.3-safe.

  • PHP

    genai/http

    Minimal HTTP layer (Request/Response/JsonResponse) and a Dispatcher that wires the router and container, compatible with PHP 5.3.29

  • PHP

    genai/i18n

    Localization for the GenAI stack — Spring-style message keys compiled from per-locale .ini catalogs into a reflection-free Cache\Messages, a Translator bean, a global __() view helper, and a LocaleInterceptor that resolves the request locale (?lang / session / Accept-Language). PHP 5.3-safe at runti

  • PHP

    genai/messaging

    Provider-agnostic messaging front (the third twin of genai/web and genai/console): the Producer/Consumer/MessageEvent contracts, a #[MessageHandler] attribute, a build-time MessageHandlerProcessor that compiles consumers.php, and a PHP 5.3-safe Worker runner that dispatches to handler beans. Ships N

  • PHP

    genai/openapi

    Generates an OpenAPI 3 document at build time from your #[RestController] routes, request-body Forms/DTOs and validation constraints — baked into a reflection-free Cache\OpenApi — and ships a controller that serves /openapi.json and a Swagger UI page at /docs. PHP 5.3-safe at runtime.

  • PHP

    genai/property

    Compile-time config (.env / .ini) binder: compiles #[Property] classes into a container fragment so config resolves as DI beans. Runtime is PHP 5.3.29.

  • PHP

    genai/rate-limit

    Fixed-window rate limiting. A RateLimiter over a pluggable store (file-backed by default), plus a RateLimitInterceptor that returns 429 when an IP exceeds the limit on a path (brute-force / flood protection). PHP 5.3-safe.

  • PHP

    genai/routing

    Minimal PSR-4 standalone route matching engine (regexes baked at build, no runtime compilation), compatible with PHP 5.3.29. Attribute-driven routing (#[Route]) lives in genai/web.

  • PHP

    genai/session

    Session component with pluggable storage: native files (default), a project file dir (cache/session), or a database (PDO). A small Session API over native PHP sessions; a SessionStore save-handler decides where the data lives. Driver chosen from the [session] config group. PHP 5.3-safe runtime.

  • PHP

    genai/sql-mapper

    MyBatis-style SQL mapper: mark an interface #[Mapper] and its methods #[Select]/#[Insert]/#[Update]/#[Delete] with the SQL. A build-time processor compiles a reflection-free Cache\<Name> implementation (prepared statements, #{name} bound params, optional row->object hydration) and registers it as a

  • PHP

    genai/trace

    Request correlation IDs for centralized logging. A TraceInterceptor reads X-Request-Id (or generates one), exposes it via a TraceContext bean + a global trace_id(), echoes it on the response, and a Monolog processor stamps it on every log line. PHP 5.3-safe at runtime.

  • PHP

    genai/validation

    Attribute-based validation compiled to a reflection-free validator. Put #[NotBlank]/#[Email]/#[Length]/#[Pattern]/#[Matches] on a #[Validate] form class; a build-time processor bakes the rules into Cache\Validation. At runtime, validate a populated form object -> a field=>error map, no reflection. P

  • PHP

    genai/view

    Minimal PHP template renderer producing HTML strings, compatible with PHP 5.3.29

  • PHP

    genai/web

    Web/MVC layer over genai/http: #[Controller]/#[RestController] (with a base path) and #[Route] attributes, a View value object, a default genai/view engine (override with #[ViewRegister]), and a dispatcher. Routes compile to genai/routing's standalone matcher. Runtime is PHP 5.3-safe; the attributes