cognesy/instructor-php

Unified LLM API, structured data outputs with LLMs, and agent SDK - in PHP

53
/ 100
Established

Supports 20+ LLM providers through a unified driver interface with automatic retry on validation failures, plus embeddings generation and agentic tool-use loops. Includes framework integration packages for Laravel and Symfony, with Symfony Validator constraints applied to extracted data before returning typed PHP objects. Built as a modular monorepo where each component (Instructor, Polyglot, Agents SDK) can be used independently or combined.

309 stars.

No Package No Dependents
Maintenance 13 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 14 / 25

How are scores calculated?

Stars

309

Forks

24

Language

PHP

License

MIT

Last pushed

Mar 13, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/cognesy/instructor-php"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.