1tomany/php-ai

A single, unified, framework-independent library for integration with many popular AI providers and large language models

Maintainers

Package info

github.com/1tomany/php-ai

pkg:composer/1tomany/php-ai

Transparency log

Statistics

Installs: 42

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.0 2026-08-29 21:08 UTC

README

This library provides a single, unified, framework-independent library for integration with several popular AI providers and large language models.

Installation

Install the library using Composer:

composer require 1tomany/php-ai

Symfony Bundle

A Symfony bundle is available if you wish to integrate this library into your Symfony applications with autowiring and configuration support.

Supported platforms

  • Gemini
  • OpenAI

Platform features

Feature Gemini OpenAI
Files
Upload
Delete
Indexes
Create
Read
Delete
Attach file
Read file
Delete file
Prompts
Compile
Send

Indexes

An "Index" is a repository of files that are available through a semantic search (or RAG) API.

Vendor Resource
Anthropic N/A
OpenAI VectorStore
Gemini FileSearchStore

Prompts

A "Prompt" is a general term for data (text, files, schemas, etc) sent to a large language model for inference.

Vendor Resource
Anthropic Message
OpenAI Response
Gemini Interaction

Credits

License

The MIT License