Instructor Php is live · free · last verified 26 Oct 2026 · viability monitor

Instructor Php

Instructor Php

Native PHP SDK for LLM inference, typed object extraction, agents, and coding-agent control.

64/100MonitorFreeFree

If you write LLM features in PHP, this is the most complete native SDK in the ecosystem — provider abstraction across 28 inference providers, typed object extraction via StructuredOutput, an agent loop with a Fake driver for deterministic tests, and AgentCtrl for orchestrating Claude Code or Codex from PHP. The four-package split matters: you can adopt Polyglot alone and add Instructor or Agents later, rather than taking on orchestration you won't use. Python-first teams should stay with LangChain or the Python Instructor; anyone wanting a no-code builder is in the wrong category entirely.

Verdict generated

Verified 3d ago · liveness 64/100 · cite: rightaichoice.com/tools/instructor-php

Best for
  • PHP developers adding structured LLM extraction to an existing app
  • Laravel and Symfony teams that want typed output, not raw strings
  • Developers building multi-step or multi-agent workflows in PHP
  • Teams routing across multiple LLM providers behind one interface
Not ideal for
  • Non-PHP developers or Python-first teams
  • Users who want a no-code or visual LLM builder
  • Projects with no engineering capacity to manage agent loop concepts
Visit Website

IntermediateA PHP developer with an API key can have the first Polyglot inference call returning text in roughly ten to fifteen minutes from composer require to output. Typed extraction with Instructor adds another fifteen to thirty minutes to define response model classes and tune retry behavior. Agents and AgentCtrl take from an hour up to a day, since agent loop concepts, tool wiring, and (for AgentCtrl)APIAPI availableVerified 3d ago
Pricing
Free
FreeFree tier4 hidden costs
Learning curve
Intermediate
A PHP developer with an API key can have the first Polyglot inference call returning text in roughly ten to fifteen minutes from composer require to output. Typed extraction with Instructor adds another fifteen to thirty minutes to define response model classes and tune retry behavior. Agents and AgentCtrl take from an hour up to a day, since agent loop concepts, tool wiring, and (for AgentCtrl)
Runs on
API
API available · 15 integrations
Who it's for
Laravel developer adding AI extraction to an existing CRMPlatform engineer standardizing model routingEngineering lead automating repository maintenance
Live sentiment
Is Instructor Php actually worth it?

We scan live Reddit threads, YouTube comments, X posts, G2 reviews and other communities — and hand you an honest verdict in under a minute.

  • Honest verdict, not marketing
  • Real pros & cons from real users
  • Attributed quotes with receipts
Run a free scan

3 free scans · no card needed

Skip it if

Skip Instructor for PHP if your application layer is not written in PHP, or if you need a visual, no-code builder for LLM workflows rather than an SDK you wire into service code.

Skip-it-if note generated
The 30-second take
Biggest gripe

The SDK itself adds no fee, but every inference, embedding, and structured-output call is billed by the underlying provider — 28 of them are reachable, and each has its own pricing.

Price reality

Instructor for PHP is an open-source Composer package — PHP teams pay nothing for the SDK and instead pay each model provider they route through. That puts it in a different cost class than hosted orchestration platforms that bundle LLM access with a subscription or usage markup, and roughly level with the Python Instructor it parallels, which is also a free library over provider APIs.

Generated

In short

Instructor Php — Native PHP SDK for LLM inference, typed object extraction, agents, and coding-agent control. Best for PHP developers adding structured LLM extraction to an existing app, Laravel and Symfony teams that want typed output, not raw strings, Developers building multi-step or multi-agent workflows in PHP. Free to use.

What is Instructor Php?

Instructor Php — Native PHP SDK for LLM inference, typed object extraction, agents, and coding-agent control. Best for PHP developers adding structured LLM extraction to an existing app, Laravel and Symfony teams that want typed output, not raw strings, Developers building multi-step or multi-agent workflows in PHP. Free to use.

FreeIntermediateAPI availableAPI

Instructor for PHP is a PHP-native SDK that gives you one fluent interface for LLM work without leaving the PHP ecosystem. It ships as four composable packages: Polyglot, Instructor, Agents, and AgentCtrl. Polyglot is the foundation — one API for 28 inference providers (OpenAI, Anthropic, Gemini, Azure OpenAI, AWS Bedrock, Groq, Mistral, Cohere, Deepseek, Fireworks, Ollama, Together, OpenRouter, Perplexity, xAI, Cerebras, SambaNova, Hugging Face, Qwen, MiniMax, Moonshot, GLM, A21, Inception, Meta and more), plus embeddings across eight providers and typed decision models. Instructor extracts typed PHP objects from model responses with automatic validation and configurable retry policies, supporting JSON, tool calling, and Markdown+JSON output modes, with sync or streaming and partial object updates. Agents adds a composable agent loop with immutable state, pluggable drivers (ToolCalling, ReAct, and a Fake driver for deterministic testing), lifecycle hooks, tools, subagents, capability packs, and session persistence across HTTP requests. AgentCtrl drives external coding-agent CLIs such as Claude Code, OpenAI Codex, OpenCode, Pi, and Gemini CLI with blocking execution or real-time streaming callbacks. Install with composer require cognesy/instructor-php, export a provider API key, and start with one package or the whole stack. It is framework-agnostic — plain PHP, Laravel, Symfony, or your own structure — and it is not a port from Python or JavaScript. That matters if your application code, service layer, and database access already live in PHP, and especially if you want typed results rather than strings you have to parse.

Key features

  • Unified inference API across 28 LLM providers via Polyglot
  • Embeddings across OpenAI, Azure OpenAI, Gemini, Cohere, Jina, Mistral, Ollama, Perplexity
  • Typed decision models returning Noul, Choice, and Score answers
  • Extract typed PHP objects from LLM responses automatically
  • Automatic validation with configurable retry policies
  • Streaming with partial object updates and deltas
  • Multiple output modes: JSON, tool calling, Markdown+JSON
  • Composable agent loop with immutable AgentState
  • Pluggable agent drivers: ToolCalling, ReAct, and Fake for testing
  • Lifecycle hooks, tools, subagents, and capability packs
  • Session persistence across HTTP requests
  • Control Claude Code, OpenAI Codex, OpenCode, Pi, and Gemini CLI from PHP
  • Blocking execution or real-time streaming callbacks with session continuity and sandbox control
  • Normalized responses carrying text, usage, cost, and tool calls
  • YAML preset system for switching providers by changing a string

Behind the verdict

Instructor for PHP's clearest strength is that it treats PHP's type system as an asset rather than an obstacle. StructuredOutput::using('openai')->with(responseModel: Person::class)->get() returns an actual Person with a string $name and int $age, validated automatically with configurable retry policies when the model drifts. That is a meaningfully different developer experience from parsing JSON by hand, and it is the feature that separates this from glue-code wrappers. The second strength is provider breadth. Polyglot fronts 28 inference providers — OpenAI, Anthropic, Gemini, Azure OpenAI, AWS Bedrock, Groq, Mistral, Cohere, Deepseek, Fireworks, Ollama, Together, OpenRouter, Perplexity, xAI, Cerebras, SambaNova, Hugging Face, Qwen, MiniMax, Moonshot, GLM, A21, Inception and more — behind one interface, and its YAML preset system lets you switch providers by changing a string instead of rewriting call sites. Embeddings cover eight providers (OpenAI, Azure OpenAI, Gemini, Cohere, Jina, Mistral, Ollama, Perplexity), and the same interface returns typed decision models (Noul, Choice, Score). The third is the Agents and AgentCtrl layer. AgentLoop ships with immutable AgentState, pluggable drivers (ToolCalling, ReAct, and a Fake driver that needs no API calls), lifecycle hooks, tools, subagents, capability packs, and session persistence across HTTP requests — the persistence piece is what makes agents viable in a conventional Laravel or Symfony request/response app rather than a long-running worker. AgentCtrl goes further out: it orchestrates Claude Code, OpenAI Codex, OpenCode, Pi, and Gemini CLI from PHP, with blocking execution or real-time streaming callbacks, session continuity, sandbox control, and normalized responses carrying text, usage, cost, and tool calls. The honest weaknesses: this is a library, not a product with a UI. There is no no-code surface and no visual builder. Agent and coding-agent features require real configuration work — you need to understand agent loop concepts, and AgentCtrl requires the external CLI tools to be installed and reachable, with their own models, costs, and rate limits applying. The documentation does not publish rate limits or plan tiers for the SDK itself, which makes sense because Polyglot is a pass-through over underlying providers: context limits and model availability vary by whoever you point it at. It is PHP-only, so Python, Node, or Go teams cannot use it, and it does not target real-time audio or multimodal input pipelines. Where it fits: PHP shops adding extraction, classification, or summarization to an existing app; Laravel and Symfony teams who want typed output end-to-end; teams that want to keep multi-provider routing as a config concern rather than a code concern; and platform teams that want coding agents invoked from application code rather than a terminal. Where it does not: anyone outside PHP, anyone who wants a hosted UI, and projects with no engineering capacity to manage agent

Models under the hood

OpenAIAnthropicGeminiGroqOllamaMistral

as of 2026-10-24

Limitations

  • The documentation does not publish rate limits or plan tiers for the SDK itself — context limits and model availability vary by the underlying provider, since Polyglot is a unified API over 25+ providers.
  • Agent and coding agent features require additional configuration.
  • AgentCtrl requires the external CLI tools (Claude Code, Codex, OpenCode, Pi, Gemini) to be installed and reachable, and running them means the coding agent's own model, cost, and rate limits apply.
  • It is a PHP-only SDK, so Python, Node, or Go teams cannot use it.

as of 2026-10-09

Researching Instructor Php? Get your full AI stack in 60 seconds.

Free, no signup — tell us your goal and get tools matched to your budget & existing stack.

Is Instructor Php still active?

Instructor Php is live · free · last verified 26 Oct 2026 · viability monitor.

Viability score

64/100
Monitor

How well maintained and how widely used is Instructor Php? Built from what the vendor actually publishes (docs, changelog, tutorials, integrations, pricing), whether the site is live, and how much real users discuss it. How we calculate this

Recent activity
not measured
Traction
100
Site health
95
User sentiment
25
What the vendor publishes
20

Last calculated: October 2026

How we score →

What do users say about Instructor Php?

What people actually say about Instructor Php — is it worth it?

We ran a structured research pass across product reviews, community discussions, and post-purchase forum threads to surface the patterns vendors won't publish themselves. Below: the recurring strengths, the hidden costs people mention most, and the cohort that consistently regrets adopting this tool.

Researched

32 mentions across 2 sources (YouTube, Lemmy) · researched Aug 29, 2026.

25% positive75% critical

Average across the 2 sources that answered — each source counts once, not each post.

Recurring strengths
  • +Unified API for 25+ LLM providers from PHP
  • +Structured output into typed PHP objects
  • +Built-in validation with configurable retries
  • +Streaming responses with partial object updates
  • +Agent loops with composable, immutable state
Recurring frustrations
  • −Zero community feedback to verify any claim
  • −No public benchmarks or performance evidence
  • −No reviews on Reddit, HN, GitHub, or Stack Overflow
  • −Support availability and quality completely unknown
  • −Documentation and real-world examples not independently assessed
Patterns worth knowing
No organic community discussion about the tool
Seen on YouTube, Lemmy
Promotional posts with zero engagement
Seen on Lemmy
Skepticism about the promise without user validation
Seen on YouTube, Lemmy
Learning curve
intermediateProductive in ~A few hours
Hidden costs people mention
  • • No hidden costs reported (but no user reports exist)
  • • Potential time cost of validating the tool without community feedback

How we verified this

Every listed fact about Instructor Php— pricing, features, links, status — is re-read from the vendor's own pages by our verification pipeline and each change is logged with a date; the last pass ran on 26 Oct 2026. Pages mix model-assisted synthesis with human review; see how we verify.

Verification history

We have re-verified Instructor Php 11 times since . Each pass re-reads the vendor's own pages and re-checks every listed field against that evidence; passes where nothing had changed are marked as such.

  1. — changed pricing page, limitations
  2. — changed switching in, who should skip it, setup time, our verdict, description, pricing fit, features, summary, switching out, hidden costs
  3. — changed who it suits, description, our verdict, features, who should skip it, summary
  4. — changed limitations, switching in, features, summary, who should skip it, our verdict, pricing fit, setup time, description, who it suits, use cases, hidden costs, switching out
  5. — changed domain expiry
  6. — changed SSL certificate

Showing the 6 most recent of 11 verification passes.

Free to cite with attribution — this page re-verifies continuously.

How much does Instructor Php cost in 2026?

Instructor Php: Free to use. Pricing last verified 26 Oct 2026.

Hidden costs & gotchas

What the public pricing page doesn't put in bold. Captured from pricing-page footnotes, contract terms, and recurring complaints.

  • The SDK itself adds no fee, but every inference, embedding, and structured-output call is billed by the underlying provider — 28 of them are reachable, and each has its own pricing.
  • AgentCtrl runs Claude Code, OpenAI Codex, OpenCode, Pi, or Gemini CLI on your machine, and those tools consume their own model tokens and quotas that appear on separate bills.
  • Automatic validation with retry policies can re-ask the model when a response fails validation, so a flaky extraction pattern can quietly multiply your token spend.
  • Streaming and partial object updates still consume a full model generation — long-running agent loops with many steps accumulate cost per step, per tool call.

Where the pricing makes sense

The company stage and team size where Instructor Php's pricing actually pencils out — and where peers do it cheaper.

Instructor for PHP is an open-source Composer package — PHP teams pay nothing for the SDK and instead pay each model provider they route through. That puts it in a different cost class than hosted orchestration platforms that bundle LLM access with a subscription or usage markup, and roughly level with the Python Instructor it parallels, which is also a free library over provider APIs.

Hidden-cost and price-fit notes generated

Has Instructor Php's pricing changed?

No plan price for Instructor Php has moved since we began logging in Aug 2026; the pricing page is re-read on every verification pass.

Who should pick Instructor Php?

Pick Instructor Php if you are PHP developers adding structured LLM extraction to an existing app, Laravel and Symfony teams that want typed output, not raw strings, Developers building multi-step or multi-agent workflows in PHP, Teams routing across multiple LLM providers behind one interface.

Look elsewhere if you are Non-PHP developers or Python-first teams, Users who want a no-code or visual LLM builder, Projects with no engineering capacity to manage agent loop concepts.

Skip it if Skip Instructor for PHP if your application layer is not written in PHP, or if you need a visual, no-code builder for LLM workflows rather than an SDK you wire into service code.

Generated

Real-world workflow fit

Concrete scenarios for the personas Instructor Php actually fits — and what changes day-one when you adopt it.

Laravel developer adding AI extraction to an existing CRM

Composer-install the package, export OPENAI_API_KEY, define a PHP class for the target shape, then call StructuredOutput::using('openai')->with(messages: $rawText, responseModel: Lead::class)->get() inside a queued job.

Outcome: Validated Lead objects land in the database without hand-written JSON parsing, and retry policies handle model drift on malformed responses.

Platform engineer standardizing model routing

Wrap every inference call behind Polyglot's Inference::using() interface, store provider choice in a YAML preset, and switch between OpenAI, Anthropic, and a local Ollama instance by changing the preset string.

Outcome: Provider migration stops being a code change and becomes a configuration change, while normalized responses keep usage and cost reporting consistent.

Engineering lead automating repository maintenance

Use AgentCtrl::claudeCode()->inDirectory('/my/project')->execute('Summarize this repo.') in a scheduled job, with a system prompt scoping the agent to architecture rather than implementation detail.

Outcome: Repo summaries and refactor passes run on a schedule from PHP, with session continuity and normalized text, usage, cost, and tool-call data returned to the application.

Workflow scenarios generated

Use cases

  • Extract typed PHP objects like a Person with name and age from unstructured text using StructuredOutput.
  • Call OpenAI, Anthropic, and a local Ollama model through the same Polyglot Inference interface.
  • Build a math tutor agent with a system prompt, tools, and stop rules using AgentLoop and AgentState.
  • Run Claude Code or OpenAI Codex from PHP to summarize or refactor a repository.
  • Generate embeddings for a PHP search or similarity feature via Polyglot's embeddings providers.
  • Test agent behavior deterministically with FakeAgentDriver, with no API calls.
  • Persist agent sessions across HTTP requests in a Laravel or Symfony web app.
  • Switch LLM providers by editing a YAML preset instead of rewriting application code.

Setup time & first value

How long it actually takes to get something useful out of Instructor Php — broken out by persona, not the marketing-page minute.

A PHP developer with an API key can have the first Polyglot inference call returning text in roughly ten to fifteen minutes from composer require to output. Typed extraction with Instructor adds another fifteen to thirty minutes to define response model classes and tune retry behavior. Agents and AgentCtrl take from an hour up to a day, since agent loop concepts, tool wiring, and (for AgentCtrl)

Switching to or from Instructor Php

How to bring data in from common predecessors and how to get it back out — written for the switcher, not the buyer.

Migrating in
  • →From hand-written cURL calls to provider APIs: replace request builders with Polyglot's Inference::using() interface and keep the API key in an environment variable.
  • →From parsing raw JSON strings: swap manual json_decode and validation for StructuredOutput with a typed responseModel class and retry policies.
  • →From the Python Instructor: rewrite extraction calls against the PHP StructuredOutput API, which keeps the same typed-model concept but uses PHP class properties.
  • →From a single hard-coded provider: move provider selection behind Polyglot and a YAML preset so the switch is a string change, not a refactor.
Migrating out
  • ↗To raw provider SDKs: call each provider's official PHP client directly, trading Polyglot's unified interface and preset system for provider-specific features.
  • ↗To a Python LLM stack: move extraction and agent logic into Python with the Python Instructor or LangChain, at the cost of rewriting application-side integration.
  • ↗To a hosted orchestration platform: manage prompts and chains in a hosted UI instead of in code, accepting the loss of framework-agnostic PHP control.

Integrations

OpenAIAnthropicGeminiAzure OpenAIAWS BedrockGroqMistralCohereDeepseekFireworksOllamaTogetherOpenRouterPerplexityxAI

Tutorials & Learning

YouTube returned 6 videos for “Instructor Php”, and we withheld 6: 6 did not mention Instructor Php. We are showing none, because we could not prove any of them are about Instructor Php.

Official links

What are the best Instructor Php alternatives?

The closest alternatives to Instructor Php we list are Marvin, Boundary ML and Lean Ctx. Ranked by direct product-type match, not category overlap.

Closest alternatives to Instructor Php
AlternativePricingStarts atLast verified
MarvinFreeFree—
Boundary MLFreemiumPricing not published—
Lean CtxFreemiumPricing not published—

Alternatives to Instructor Php

View all
Marvin

Marvin

Marvin is an open-source Python framework that turns LLM calls into typed functions, agents, and Pydantic-validated results.

FreeTry
Boundary ML

Boundary ML

BAML is a type-safe, Turing-complete language for agentic and LLM code that compiles typed Python and TypeScript SDKs.

FreemiumTry
Lean Ctx

Lean Ctx

Local MCP context gateway that compresses and filters what your AI coding agent reads

FreemiumTry

Tools that pair well with Instructor Php

Common stack mates teams adopt alongside Instructor Php, with the specific reason each pairing earns its keep.

Instructor Php vs its closest rival

Instructor Php's closest head-to-head is with Presto Voice — Presto Voice and Instructor PHP serve completely different audiences — one is a specialized drive-thru voice AI for QSR chains, the other a developer SDK for structured LLM outputs in PHP. Your choice depends entirely on domain: if you run a multi-location quick-service restaurant with drive-thrus and need to boost revenue, Presto Voice is the pick; if you're a PHP developer building LLM-powered apps with structured data extraction, Instructor PHP is free and purpose-built. There's no overlap, so pick based on your role. Verdict generated

Head-to-head comparisons

Instructor Php vs Presto Voice

Presto Voice and Instructor PHP serve completely different audiences — one is a specialized drive-thru voice AI for QSR chains, the other a developer SDK for structured LLM outputs in PHP. Your choice depends entirely on domain: if you run a multi-location quick-service restaurant with drive-thrus and need to boost revenue, Presto Voice is the pick; if you're a PHP developer building LLM-powered apps with structured data extraction, Instructor PHP is free and purpose-built. There's no overlap, so pick based on your role.

Generated

Instructor Php vs Locus Robotics

Locus Robotics and Instructor PHP serve completely different domains: physical warehouse automation vs. software SDK for LLM interaction. Choose Locus if your pain point is manual picking inefficiency in a busy warehouse; choose Instructor PHP if you're a PHP developer needing to integrate LLMs with structured outputs. They are not competitors but complementary tools for unrelated problems.

Generated

Instructor Php vs Truleo

Truleo and Instructor PHP serve entirely different domains — law enforcement intelligence vs. PHP developer tooling. Choose Truleo if you're a police agency drowning in siloed data and need automated lead generation, report writing, and real-time alerts. Choose Instructor PHP if you're a PHP developer who needs structured LLM outputs and multi-provider support without switching ecosystems. There's no overlap; the decision depends entirely on your role and industry.

Generated

Frequently asked questions

Used Instructor Php? Help shape our editorial sentiment research.