Build AI capable applications with PHP

A set of components that integrate AI capabilities into PHP applications.

$platform = PlatformFactory::create(...);
$agent = new Agent($platform, '')

$messages = new MessageBag(
    Message::forSystem('You are a pirate and you write funny.'),
    Message::ofUser('What is the Symfony framework?'),
);
$response = $agent->call($messages, [
    'temperature' => 1.0, // specific options just for this call
]);

echo $response->getContent();

Stores

See all stores

Built-in Tools

Explore and try our demos

Question answering started with a YouTube video ID which gets converted into a transcript.

Chatbot for proposing cooking recipes - powered by structured output.

A chatbot equipped with tools to search and read on Wikipedia about topics the users ask for.

Retrieval Augmented Generation (RAG) based on Symfony's blog dumped to a vector store.

Demonstration of speech-to-text & text-to-speech and a subagent, combining 4 models in total.

Demonstration of vision capabilities of GPT in combination with your webcam.

AI-assisted image cropping to focus on key elements on the image while resizing.

Demonstration of streaming text responses in combination with markdown based on Turbo and SSE.