PHPackages                             cognesy/instructor-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cognesy/instructor-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cognesy/instructor-laravel
==========================

Laravel integration for Instructor PHP - Structured LLM outputs made simple

v2.3.1(3mo ago)051↓93.8%MITPHPPHP ^8.3

Since Dec 29Pushed 3mo agoCompare

[ Source](https://github.com/cognesy/instructor-laravel)[ Packagist](https://packagist.org/packages/cognesy/instructor-laravel)[ RSS](/packages/cognesy-instructor-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (47)Versions (19)Used By (0)

Laravel Package
===============

[](#laravel-package)

Laravel integration for InstructorPHP.

It provides:

- Laravel service provider and config
- Facades for `StructuredOutput`, `Inference`, `Embeddings`, and `AgentCtrl`
- Laravel-specific HTTP client and HTTP pool drivers
- a Laravel-bound `CanSendHttpRequests` transport implementation
- native `Cognesy\Agents` container bindings, registry loading, and session runtime
- database-backed native agent sessions, broadcasting helpers, telemetry wiring, and logging presets
- testing fakes for facade-based tests and Laravel-native helper utilities for native agents
- Artisan commands for install, smoke-test, and response-model scaffolding

The package now treats native `Cognesy\\Agents` runtime configuration and `AgentCtrl`code-agent execution as separate Laravel surfaces:

- `agents` is reserved for native agent runtime integration
- `agent_ctrl` configures CLI code agents exposed through the `AgentCtrl` facade
- `telemetry` is the first-class config namespace for Laravel telemetry wiring

Example
-------

[](#example)

```
