Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Unified LLM API, structured data outputs with LLMs, and agent SDK - in PHP
| Date | Stars |
|---|---|
| 2026-07-31 | 326 |
| 2026-08-06 | 326 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
# About This Monorepo
This monorepo contains a set of dev-friendly, framework agnostic components offering 3 main capabilities:
- **Instructor for PHP** - structured data extraction in PHP - powered by LLMs, designed for simplicity, transparency, and control; supports custom LLM output processors (not just JSON),
- **Polyglot for PHP** - unified LLM API - write code once, deploy with any LLM provider: OpenAI chat completions API, OpenAI responses API, Anthropic, Gemini, Ollama, etc.; you can write own LLM drivers,
- **Agent SDK for PHP** - lightweight but powerful agent SDK, supports custom tools, lifecycle hooks, subagents, context management, custom stop / continuation criteria, observability via events, packaged capabilities, agent templates, session management, and more.
Framework integration packages:
- **Laravel Package** - first-party Laravel integration for facades, HTTP transport, native agents, telemetry, logging, and testing
- **Symfony Package** - first-party batteries-included Symfony integration package, currently being introduced under `packages/symfony`
## Read More
- Official website https://instructorphp.com
- Docs website (Mintlify) https://docs.instructorphp.com
- Docs (Github Pages) https://cognesy.github.io/instructor-php/
## Overview of Capabilities
The library offers a set of small, focused building blocks.
### Structured output
Purpose: turn messy model output into typed PHP data.
Benefit: you stop hand-parsing JSON or text before using LLM results.
```php
use Cognesy\Instructor\StructuredOutput;
final class Person {
public string $name;
public int $age;
}
$person = StructuredOutput::using('openai')
->with(messages: 'Jason is 28 years old.', responseModel: Person::class)
->get();
```
Detailed docs: [packages/instructor/docs/](packages/instructor/docs/)
### Unified inference
Purpose: call different LLM providers through one API.
Benefit: switch providers without rewriting request code.
```php
use Cognesy\Polyglot\Inference\Inference;
$text = Inference::using('openai')
->withMessages('Say hello in one sentence.')
->get();
```
Detailed docs: [packages/polyglot/docs/](packages/polyglot/docs/)
### Embeddings
Purpose: generate vectors through the same provider layer.
Benefit: keep retrieval and inference in one stack.
```php
use Cognesy\Polyglot\Embeddings\Embeddings;
$vectors = Embeddings::using('openai')
->withInputs(['hello world'])
->vectors();
```
Detailed docs: [packages/polyglot/docs/](packages/polyglot/docs/)
### Agents SDK
Purpose: build tool-using agents as a simple loop over state.
Benefit: add tools and control flow without inventing your own agent runtime first.
```php
use Cognesy\Agents\AgentLoop;
use Cognesy\Agents\Data\AgentState;
$result = AgentLoop::default()->execute(
AgentState::empty()->withUserMessage('What is 2+2?')
);
```
Detailed docs: [packages/agents/docs/](packages/agents/docs/)
### Code agent bridges
Purpose: drive external coding agents like Codex, Claude Code, and OpenCode from PHP.
Benefit: automate reviews, summaries, and coding workflows through one interface.
```php
use Cognesy\AgentCtrl\AgentCtrl;
$response = AgentCtrl::codex()->execute('Summarize this repository.');
```
Detailed docs: [packages/agent-ctrl/docs/](packages/agent-ctrl/docs/)
### Framework integration
Purpose: install framework-native runtime wiring instead of assembling your own glue.
Benefit: get a supported bundle or package surface for container bindings, events, observability, and testing.
- Laravel package: [packages/laravel/](packages/laravel/)
- Symfony package: [packages/symfony/](packages/symfony/)
Symfony docs highlights:
- quickstart: [packages/symfony/docs/quickstart.md](packages/symfony/docs/quickstart.md)
- configuration: [packages/symfony/docs/configuration.md](packages/symfony/docs/configuration.md)
- operations: [packages/symfony/docs/operations.md](packages/symfony/docs/operations.md)
- migration: [packages/symfony/Excerpt of 18,934 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:be775639c8fcf2fd, topic:ai-agents, topic:agents
matched fp:be775639c8fcf2fd, topic:llm