PHPackages                             inspector-apm/neuron-ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. inspector-apm/neuron-ai

Abandoned → [neuron-core/neuron-ai](/?search=neuron-core%2Fneuron-ai)Library[Framework](/categories/framework)

inspector-apm/neuron-ai
=======================

The PHP Agentic Framework.

3.16.4(1w ago)2.0k315.1k—4.6%233[3 issues](https://github.com/neuron-core/neuron-ai/issues)[3 PRs](https://github.com/neuron-core/neuron-ai/pulls)4MITPHPPHP ^8.1CI passing

Since Mar 2Pushed 1w ago33 watchersCompare

[ Source](https://github.com/neuron-core/neuron-ai)[ Packagist](https://packagist.org/packages/inspector-apm/neuron-ai)[ GitHub Sponsors](https://github.com/neuron-core)[ RSS](/packages/inspector-apm-neuron-ai/feed)WikiDiscussions 3.x Synced 1w ago

READMEChangelog (10)Dependencies (220)Versions (457)Used By (4)

Create Full-Featured Agentic Applications in PHP
================================================

[](#create-full-featured-agentic-applications-in-php)

[![Latest Stable Version](https://camo.githubusercontent.com/79d4457cca230cc79c53609782d94cb7cc2fc40148bb07e8f463ef4024fbb6c9/68747470733a2f2f706f7365722e707567782e6f72672f6e6575726f6e2d636f72652f6e6575726f6e2d61692f762f737461626c65)](https://packagist.org/packages/neuron-core/neuron-ai)[![Total Downloads](https://camo.githubusercontent.com/2ba1defa9f1cac4dcd2a7727218a7b06000956f0e840e88e6fd05fbbd55a166c/687474703a2f2f706f7365722e707567782e6f72672f6e6575726f6e2d636f72652f6e6575726f6e2d61692f646f776e6c6f616473)](https://packagist.org/packages/neuron-core/neuron-ai)

Important

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. [Subscribe to the newsletter](https://neuron-ai.dev)

> Before moving on, support the Neuron AI community giving a GitHub star ⭐️. Thank you!

What is Neuron?
---------------

[](#what-is-neuron)

Neuron is a PHP framework for creating and orchestrating AI Agents. It allows you to integrate AI entities into your PHP applications with a powerful and flexible architecture. We provide tools for the entire agentic application development lifecycle, from LLM interfaces, data loading, multi-agent orchestration, to monitoring and debugging. In addition, we provide tutorials and other educational content to help you get started using AI Agents in your projects.

[**Video Tutorial**](https://docs.neuron-ai.dev/overview/fast-learning-by-video)

[![Neuron & Inspector](./docs/images/youtube.png)](https://docs.neuron-ai.dev/overview/fast-learning-by-video)

Why Neuron
----------

[](#why-neuron)

Your next application will be agentic. A growing share of new software is no longer a web application with AI features added along the way, but an application born agentic, where the agent is the architecture itself, driving how the system reasons, acts, and talks to its interface. Building this kind of application requires a specific set of foundations: event-driven workflows with checkpointing, human-in-the-loop interruption, multi-agent orchestration, streaming through agentic UI protocols like AG-UI and the Vercel AI SDK protocol, MCP, and asynchronous execution.

In the PHP ecosystem, this set of foundations exists in one place. Each one is a chapter of the documentation: [Workflow](#workflow), [Human in the loop](https://docs.neuron-ai.dev/workflow/human-in-the-loop), [Streaming &amp; UI protocols](https://docs.neuron-ai.dev/agent/streaming#stream-adapters), [MCP](#mcp-connector), [Async](https://docs.neuron-ai.dev/agent/async). You can compare it with any other option available to a PHP developer, and the comparison is the answer.

There is also no second framework waiting for you when the project grows. The same Workflow that runs your first agent in the getting started guide runs a multi-agent system with state, loops, and human approvals in production. What you learn on day one is what you ship in future projects.

A Vertical &amp; Independent Ecosystem
--------------------------------------

[](#a-vertical--independent-ecosystem)

Neuron is also the only vertical ecosystem for agentic applications development in PHP. Around the framework there is a registry of extensions, tools, and technologies designed specifically for agentic applications, and a growing number of companies building on the same architecture instead of assembling their own from scattered parts.

For a software house, this is a place to be recognized as a specialist rather than one more team claiming AI experience. For a company that needs an agentic foundation it can commit to for years, it means standardizing on an architecture whose whole direction is this space, not a general-purpose library where agents are a side feature.

Requirements
------------

[](#requirements)

- PHP: ^8.1

Official documentation
----------------------

[](#official-documentation)

**[Go to the official documentation](https://docs.neuron-ai.dev/)**

How To
------

[](#how-to)

- [Install](#install)
- [Create an Agent](#create)
- [Talk to the Agent](#talk)
- [Monitoring](#monitoring)
- [AI Providers](#providers)
- [Tools &amp; Toolkits](#tools)
- [MCP Connector](#mcp)
- [Structured Output](#structured)
- [RAG](#rag)
- [Workflow](#workflow)
- [AI Assisted Development](#agentic)
- [Security Vulnerabilities](#security)
- [Official Documentation](#documentation)

Install
-------

[](#install)

Install the latest version via composer:

```
composer require neuron-core/neuron-ai

```

Create an Agent
---------------

[](#create-an-agent)

Neuron provides you with the Agent class you can extend to inherit the main features of the framework and create fully functional agents. This class automatically manages some advanced mechanisms for you, such as memory, tools, and function calls, up to RAG (Retrieval Augmented Generation). You can go deeper into these aspects in the [documentation](https://docs.neuron-ai.dev).

Let's create an Agent with the command below:

```
vendor/bin/neuron make:agent DataAnalystAgent

```

```
