Neuron

The First Agentic Framework
Of The PHP Ecosystem

Neuron AI gives you a production-ready, type-safe framework to create autonomous agents, complex workflows, and RAG systems directly in your existing PHP stack.

All-in-one framework

AI Agents

Build production-ready agentic workflows. Swap LLMs like OpenAI, Claude, or Mistral with a single line of code - All with 100% PHPStan coverage and full coding assistants support.

Workflows

Design complex, event-driven workflows with multiple agents. Manage state, handle loops, and implement "human-in-the-loop" logic directly in your PHP application.

RAG

A complete pipeline for your data. Connect PDFs, SQL, or docs to vector stores like Pinecone or Elasticsearch to give your agents real-world context.

Monitoring

No more "black box" AI. Powered by Inspector.dev, you get instant visibility into every agent's thought process, tool call, and RAG retrieval in production.

Built To Scale In Production

Multi-Provider Support

Multi-Provider Support

Work with OpenAI, Anthropic, Gemini, Mistral, ZAI, and more. Switch between LLM providers with a single line of code without impacting your application implementation.

Modular Agent Toolkits

Modular Agent Toolkits

Build agents with specialized capabilities by mixing and matching toolkits. Add database readers, API integrators, or custom tools to create AI solutions tailored to your use case.

Composable Architecture

Composable Architecture

Workflow allows you to use all the Neuron components like AI providers, embeddings, data loaders, chat history, vector store, etc, as standalone components to create totally customized agentic entities.

Data Integration

Data Integration

Load data from CSV, JSON, SQL databases, and more to create unified data models for your agents. Work seamlessly with your existing data infrastructure.

RAG Capabilities

RAG Capabilities

Implement powerful Retrieval-Augmented Generation in just a few lines. Connect agents to your knowledge bases and external data sources for enhanced accuracy and relevance.

Built-in Observability

Built-in Observability

Monitor agent execution with Inspector.dev integration. Move from prototype to production with confidence—enable monitoring with just one line of code.

A framework designed for the
best developer/agentic experience

Fully Typed

Every method, property, and return value is explicitly typed for maximum IDE support and type safety.

PHPStan 100% coverage

Complete type coverage across the entire framework ensures reliability and maintainability.

Coding Agent Friendly

Let AI Coding Assistants know how to create Neuron AI agentic systems with our integrated skills, or connect directly with the documentation through the MCP server.

Agnostic Architecture

Neuron integrates seamlessly with your existing codebase without refactoring or disrupting established environments.

Perfectly Integrated
With Your Favorite Frameworks

Custom MVC
class CustomerServiceAgent extends Agent
{
    protected function provider(): AIProviderInterface
    {
        // you can also use OpenAI, Gemini, XAI, AWS Bedrock, Azure, and others
        return new Anthropic(
            'ANTHROPIC_API_KEY',
            'claude-4-5-sonnet'
        );
    }

    public function instructions(): string
    {
        return (string) new SystemPrompt(
            background: [
                'You are a helpful customer service assistant. ' .
                'Provide clear, friendly, and accurate responses.'
            ]
        );
    }

    public function tools(): array
    {
        return [
            CalculatorToolkit::make(),
        ];
    }
}

// Use the agent in your application
$response = CustomerServiceAgent::make()
    ->chat(
        new UserMessage('Give me the daily average of sales in the last 30 days!')
    )
    ->getMessage();

echo $response->getContent();

See How Simple It Is

Create fully-functional AI agents with clean, understandable PHP code. No complex setup, no boilerplate, just elegant, production-ready implementation.

Ready to build
AI Agents in PHP?

Learn how to build powerful AI agents in PHP with our comprehensive video tutorials. Watch step-by-step guides that cover everything from installation to advanced features, and start building production-ready AI agents in minutes.

AI Agent tutorial video

Get expert support
from the framework creators

Build your AI-powered applications with confidence. Our team of framework creators provides dedicated consultancy and support to accelerate your project success.

Start with AI Agents in PHP - book cover
THE ULTIMATE GUIDE TO BUILDING AI-POWERED AGENTS WITH PHP

Start with AI Agents in PHP

Position yourself in the AI Agent era with this comprehensive resource that shows exactly how to get there using PHP. Learn from practical examples and real-world use cases.

$8.90

Available on Amazon and Google Play

Join the PHP AI
revolution

Get early access to new features, exclusive tutorials, and expert tips for building AI agents in PHP. Join a community of PHP developers pioneering the future of AI development.