Libraries tagged by genai

llm-agents/agents

168 Favers
17344 Downloads

LLM Agents PHP SDK - Autonomous Language Model Agents for PHP

Go to Download


cognesy/instructor-php

325 Favers
126231 Downloads

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

Go to Download


oro/gen-ai

0 Favers
51888 Downloads

OroCommerce AI Generation Integration

Go to Download


genai/web

0 Favers
114 Downloads

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/processors are PHP 8 build-time.

Go to Download


genai/view

0 Favers
114 Downloads

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

Go to Download


genai/validation

0 Favers
94 Downloads

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. PHP 5.3-safe runtime.

Go to Download


genai/trace

0 Favers
111 Downloads

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.

Go to Download


genai/sql-mapper

0 Favers
110 Downloads

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\ implementation (prepared statements, #{name} bound params, optional row->object hydration) and registers it as a container bean keyed by the interface. Self-contained: a bundled DatabaseConfig provides the 'PDO' bean from a [database] group in the app's app.ini, so you only edit config. Runtime is PHP 5.3-safe.

Go to Download


genai/session

0 Favers
108 Downloads

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.

Go to Download


genai/routing

0 Favers
119 Downloads

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.

Go to Download


genai/rate-limit

0 Favers
59 Downloads

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.

Go to Download


genai/property

0 Favers
149 Downloads

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.

Go to Download


genai/openapi

0 Favers
59 Downloads

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.

Go to Download


genai/messaging

0 Favers
57 Downloads

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 NO broker — each app registers its own Consumer/Producer (Kafka, Pdo, SQS, ...). Shares the same compiled container as the web and CLI fronts.

Go to Download


genai/i18n

0 Favers
59 Downloads

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 runtime.

Go to Download


Next >>