Skip to content

Jev directory

Instructor for PHP

A PHP monorepo that adds typed decision APIs on top of structured output, unified inference, retrieval and an agent SDK: the Polyglot Decision API can call the TypeSafe provider and return probabilities for noul questions, alongside OpenAI, Anthropic, Gemini and Ollama drivers.
Stars
328
Language
PHP
License
MIT
Reading time
2 min
Published by
Community
Author
cognesy
Last verified
Oct 2026

Highlights

  • Monorepo of four pieces: Instructor for structured output, Polyglot for unified inference, Retrieval for RAG context, and an Agent SDK.
  • Polyglot's Decision API takes typed yes/no, choice and score questions and can run them on the TypeSafe provider to get probabilities.
  • Drivers cover OpenAI, Anthropic, Gemini, Ollama and TypeSafe out of the box, and you can write your own.
  • First-party Laravel integration package plus a Symfony package being introduced under packages/symfony.
  • Install with composer require cognesy/instructor-php; MIT licensed.

Quickstart

bash
composer require cognesy/instructor-php

Watch out

Copy reviewed against the repo README on 2026-10-15; the README lists features and code samples but no benchmarks or pricing, and it describes the Symfony package as still being introduced. Calling hosted providers including TypeSafe needs your own API keys.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai