Feature · Language ports
Prism has PHP, TypeScript and Python implementations of core and all eight companion package families, including Harness.
Shared conformance fixtures run through all three languages and compare their results.
Capabilities
01
Both ports implement every capability the PHP reference has. Choose a language once and every docs example follows it.
02
prism-parity owns shared conformance fixtures covering request construction, response parsing, value-object round trips, coded errors and JSON container identity.
03
Alongside the conformance fixtures, every package family has a security corpus.
04
TypeScript runs on Node 20+ with native promises and strict types. Python runs on 3.10+ with zero runtime dependencies.
05
Conformance results establish agreement for the tested cases. They do not imply complete provider coverage or identical framework integrations; each guide names language-specific APIs and unsupported operations.
How it fits
PHP and Laravel are the reference. TypeScript and Python packages are configured independently of any framework, and each language installs from its own registry.
Install
particle-academy/prism PHP
@particle-academy/prism TypeScript
prism-ai-core Python
Next
Related features
Provider interface
One API, every provider
One request shape for text, structured output, streaming, embeddings, media, audio, files and batches, in PHP, TypeScript and Python.
Durable agent sessions
Agent harness
Durable sessions, threads, modes, approvals and subagents with their own budgets, for agents that outlive a request.
Model Context Protocol
MCP
Discover and call MCP server tools with explicit trust policies, definition pinning and bounded results.