Download the PHP package atlas-php/atlas without Composer
On this page you can find all versions of the php package atlas-php/atlas. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atlas-php/atlas
More information about atlas-php/atlas
Files in atlas-php/atlas
Package atlas
Short Description A unified AI SDK for Laravel applications.
License MIT
Informations about the package atlas
โจ Features ยท ๐ Documentation ยท ๐งช Sandbox & Examples ยท โ๏ธ Comparison
๐ช Atlas
A unified AI SDK for Laravel โ agents, tools, and 10 modalities across every major provider.
One API for OpenAI, Anthropic, Google, xAI, ElevenLabs, and any OpenAI-compatible endpoint โ with no external AI dependency. Atlas runs the tool-call loop and adds optional persistence for conversations, tracking, and memory.
Every provider modality is live-tested against real provider APIs. See the API Audit.
โก It's this simple
No agent classes, no config. Add ->instructions() and ->withTools() when you need them, or graduate to a reusable Agent as your app grows.
๐ฏ Highlights
- Every modality โ text, images, audio, music, SFX, video, realtime voice, embeddings, reranking, moderation. Voice, music, SFX, and video are Atlas-only.
- A real agent framework โ first-class agents, sub-agents with guards and true parallel fan-out, auditable execution trees.
- Production-grade persistence โ conversation memory, execution tracking, retry & branch, media assets on disk (S3/local).
- Operational services โ pre-flight token counting, provider-call observability, runtime model/voice discovery.
- Control at every layer โ middleware across agent, step, tool, and provider boundaries.
- Multi-provider, one API โ every major provider plus any OpenAI-compatible endpoint; swap by changing a string.
๐ก Why Atlas?
Plenty of AI libraries get you a response and stop there. Atlas handles everything after the happy path โ the retries, errors, and tracking real apps run into.
- Tested for real, not mocked. Every modality runs against the live provider API (API Audit), and every feature ships with automated tests. What the docs say is what ships.
- Production-hardened. Automatic retries, typed exceptions, observability, and cost tracking that survives interrupted streams โ the failure modes real apps hit are already handled.
- Keeps pace with the providers. New models, tools, and capabilities land fast โ the CHANGELOG shows the cadence.
And where it counts, Atlas simply does more: realtime voice, video, retry & branch, pre-flight token counting, and ~50%-cheaper batch processing are all Atlas-only among Laravel AI libraries. See the full comparison โ
๐ Quick Start
Supports Laravel 11+.
Define an Agent
Build a Tool
Chat with the Agent
Speak with the Agent (Voice to Voice)
See the Voice Integration Guide for full setup instructions.
Optional: Enable Persistence
Atlas runs fully stateless by default โ no database required. To unlock conversation history, execution tracking, media-asset storage, and retry & branch, publish and run the migrations:
Then turn it on in .env:
That's it โ ->for($user) and ->forConversation($id) now load and persist history automatically.
โจ Features
Core generation
- Text & structured output โ schema-validated JSON from any provider
- Streaming โ SSE + Laravel Broadcasting, real-time chunks
- Tool calling โ typed tools, multi-step loop, concurrent execution
- Reasoning โ configure, stream, and persist extended thinking
- Prompt caching โ cache long system prompts to cut cost
- Token counting โ count input (with tools & images) before sending
Agent framework
- Agents โ provider, model, instructions, and tools in one reusable class
- Sub-agents โ delegation with depth/cycle guards, lineage, and parallel fan-out
- Conversations & memory โ multi-turn history, retry & branch, agent memory
- Execution tracking โ steps, tools, usage, and assets persisted
- Media assets โ auto-stored to disk (S3/local), linked to messages
- Middleware โ agent, step, tool, and provider layers
- Variable interpolation โ
{var}placeholders resolved at runtime - Queues โ async execution with broadcasting and callbacks
Modalities
- 10 modalities โ text, images, audio, music, sound effects, video, voice, embeddings, reranking, moderation
- Realtime voice โ bidirectional voice conversations with tools
- Similarity search โ whole-record or chunked embeddings, diff-based re-embedding
Ecosystem & tooling
- Provider tools โ web search, code interpreter, file search
- MCP โ composes with Laravel MCP
- Provider discovery โ list models/voices, validate keys, inspect capabilities
- Observability โ trace every provider call, correlation IDs across retries
- Testing โ full per-modality fakes, no API keys required
- Custom providers โ OpenAI-compatible endpoints or fully custom drivers
๐ Providers
Atlas talks to every major provider through one interface. Switch by changing a string โ your agents, tools, and middleware stay the same.
First-party drivers
OpenAI ยท Anthropic ยท Google (Gemini) ยท xAI (Grok) ยท ElevenLabs ยท Cohere ยท Jina
Any OpenAI-compatible API
Ollama ยท Groq ยท DeepSeek ยท Together ยท OpenRouter ยท LM Studio ยท Mistral ยท Perplexity
๐ Documentation
atlasphp.org โ Full guides, API reference, and examples.
- Getting Started โ Installation and configuration
- Agents โ Define reusable AI configurations
- Tools โ Connect agents to your application
- Sub-agents โ Agent-to-agent delegation, including concurrent (parallel) fan-out
- Middleware โ Extend with four middleware layers
- Similarity Search โ Semantic search over whole-record or chunked embeddings
- Modalities โ Text, images, audio, video, voice, embeddings, and more
- Conversations โ Multi-turn chat with persistence
- Voice โ Real-time voice conversations
- Streaming โ SSE and broadcasting
- Queue โ Background execution
- Testing โ Fakes and assertions
๐งช Sandbox
A fully functional chat interface demonstrating Atlas agents in action โ multi-agent chat, tool calling, conversation memory, and live image/video generation. Built with Vue 3, Tailwind CSS, and a Laravel JSON API.
|
Pick from multiple agents โ each with its own model and tools |
Multi-modal input โ attach multiple images in one message |
|
Extended thinking โ stream the model's reasoning and inspect it per step |
Tool calling โ full execution trace with arguments and results |
|
Streaming Markdown chat with full execution traces |
Image generation rendered inline from a tool call |
|
Video generation that plays right in the thread |
Image editing โ upload a photo and have an agent restyle it |
|
Retry & branch โ regenerate any reply and step through versions |
Realtime voice โ live waveform as you speak and as the AI replies |
See the Sandbox README for setup instructions and details.
๐งน Testing and Code Quality
Atlas uses several tools to maintain high code quality:
| Tool | Purpose |
|---|---|
| Pest | Testing framework |
| Larastan | Static analysis |
| Laravel Pint | Code style |
| API Audit | Every provider modality verified against real provider APIs |
| Codecov |
๐ค Contributing
We welcome contributions!
Support the community by giving a GitHub star. Thank you!
Please see our Contributing Guide for details.
๐ License
Atlas is open-sourced software licensed under the MIT license.
All versions of atlas with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/pipeline Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
spatie/fork Version ^1.2
phrity/websocket Version ^3.0