PHPackages                             cognesy/instructor-struct - 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-struct

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

cognesy/instructor-struct
=========================

Structured data extraction in PHP, powered by LLMs - core library

v2.3.1(1mo ago)02327MITPHPPHP ^8.3

Since Apr 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cognesy/instructor-struct)[ Packagist](https://packagist.org/packages/cognesy/instructor-struct)[ Docs](https://instructorphp.com)[ RSS](/packages/cognesy-instructor-struct/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (46)Versions (86)Used By (7)

Instructor Package
==================

[](#instructor-package)

Core structured-output engine for InstructorPHP.

Use it to turn unstructured LLM responses into typed PHP data, with validation, retries, and streaming updates.

Example
-------

[](#example)

```
