Neuron AI for PHP: Build and Orchestrate AI Agents with Ease

Neuron AI is a PHP framework designed for creating and orchestrating AI agents. It lets you integrate AI-powered components directly into your Laravel or Symfony applications — with built-in support for memory, multi-agent orchestration, and observability.
Install it with one line:
composer require neuron-core/neuron-ai
Create an Agent
Neuron provides a simple base class to build your own agents:
php vendor/bin/neuron make:agent DataAnalystAgent
Example:
class DataAnalystAgent extends Agent { protected function provider(): AIProviderInterface { return new Anthropic( key: 'ANTHROPIC_API_KEY', model: 'ANTHROPIC_MODEL', ); } protected function instructions(): string { return (string) new SystemPrompt([ "You are a data analyst expert in creating reports from SQL databases." ]); } }
Talk to the Agent
$agent = DataAnalystAgent::make(); $response = $agent->chat(new UserMessage("Who are you?")); echo $response->getContent();
Neuron automatically manages conversation memory, making agents context-aware.
Add Tools
Connect real-world data sources like MySQL with built-in toolkits:
protected function tools(): array { return [MySQLToolkit::make(\DB::connection()->getPdo())]; }
Monitor and Debug
Neuron integrates seamlessly with Inspector.dev for real-time monitoring and debugging:
INSPECTOR_INGESTION_KEY=your-key
You’ll get full visibility into agent execution timelines and model behavior.
Supported Providers
Neuron supports all major LLMs — including Anthropic, OpenAI, Gemini, Ollama, HuggingFace, Mistral, and AWS Bedrock.
Neuron is the missing AI layer for PHP. Start building intelligent, agentic applications today.
