Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Agentic AI in PHP with NeuronAI: Agents, Tools and RAG
New
Rating: 5.0 out of 5(2 ratings)
8 students

Agentic AI in PHP with NeuronAI: Agents, Tools and RAG

Build AI agents in PHP with NeuronAI: tools, memory, structured output, RAG, testing and a first Laravel app.
Created byHidran Arias
Last updated 11/2026
English
EnglishSpanish

What you'll learn

  • Build AI agents in PHP 8.5 with NeuronAI and run them on Anthropic, OpenAI, Gemini or local Ollama models
  • Decide when a feature needs a single model call, a workflow or a real agent, and measure what it costs
  • Give agents memory with message stores and manage the context window
  • Build tools and toolkits, guard the tool loop and return tool errors to the model instead of crashing
  • Get typed, validated structured output and stream answers token by token
  • Connect external tools with MCP, trace every run and test agents deterministically with fake providers
  • Build a RAG pipeline with loaders, chunking, embeddings and vector stores, and write your first workflows
  • Use NeuronAI in Laravel 13 with the SDK, the service container and Eloquent memory

Course content

17 sections • 113 lectures • 17h 1m total length
  • Welcome, and how to use this course on Udemy5:35

    Thank you for joining the course. In this short video we look at what we are going to learn, section by section, and then take a tour of the Udemy course player: the course content and your progress, the Resources of each lecture (slides PDF, source code ZIP and the GitHub branch of the lesson), the player controls (speed, notes, settings, the expanded view and keyboard shortcuts), how to ask a question in Q&A so that it is linked to the lecture you are watching, and how and why to leave an honest rating.

  • Welcome: what we build, who it is for, how the course works4:55

    Meet the course: who it is for, why we build AI agents in PHP with NeuronAI, and what you will be able to build, from tools and memory to structured output, streaming, MCP, RAG, workflows and Laravel. We see how the course works: PhpStorm in every lesson, practice first, plain PHP before Laravel, Anthropic, OpenAI and Gemini in the videos, and Ollama as the free local option. Then a short demo in PhpStorm: we open a finished HelloAgent class and run it in the terminal to read a real answer from the model.

Requirements

  • An llm installed locally or an api key from openai, gemini or anthropic
  • php 8.5 and composer installed
  • An IDE such as Visual Code, PhpStorm or any other php editor
  • Solid PHP: object-oriented programming, interfaces and attributes; Composer and PSR-4 autoloading
  • Basic HTTP and JSON. For the Laravel section: routing, Eloquent and the service container
  • PHP 8.5 or later and Composer, or Docker. An API key for a provider is recommended; free local models with Ollama also work

Description

This course contains the use of artificial intelligence.

AI was used for voice dubbing of the narration and for some of the screen recordings, to improve the quality of the course. All coding exercises and examples were verified by hand. An ebook with all the slides content included

AI features are moving from demos into real applications, and most of those applications are written in PHP. This course shows you how to build AI agents where your data and business rules already live, with NeuronAI, the agentic framework for PHP, and PHP 8.5.

This is a hands-on course for developers and software engineers. In the first section you set up PhpStorm, PHP and Composer (or the optional Docker environment) and run your first agent. From there every concept is shown running in code: we change one thing, run it, and look at what happened.

HOW AGENTS REALLY WORK

You learn what separates a single model call, a chatbot, a workflow and an agent, and why that choice matters more than the model. You watch the agent loop happen in your own runs, read the messages and the tool schemas that go to the model, and measure tokens, cost and latency. Then you open NeuronAI's source in PhpStorm to see how the framework is built.

BUILDING AGENTS IN PLAIN PHP

You write system prompts, swap providers in one line (Anthropic, OpenAI, Gemini and local models with Ollama), and give agents memory with message stores. You build tools and toolkits, guard the tool loop, return errors to the model instead of crashing, and get typed, validated output you can store in a database. You stream answers, send images and files to the model, and connect external tools through the Model Context Protocol.

TESTING, RAG AND FIRST WORKFLOWS

You trace every run and write deterministic tests with fake providers, so your CI stays green. You build retrieval augmented generation step by step: loaders, chunking, embeddings and vector stores, and you write your first event-driven workflows.

NEURONAI IN LARAVEL AND A CAPSTONE

You bring your agents into Laravel 13 with the SDK, the container and Eloquent memory. You finish with a capstone: a command-line agent that audits a PHP repository and writes a structured report.

The course is in production. New sections are added as they are recorded: check the curriculum to see the lessons available today.

Who this course is for:

  • PHP developers who want to add AI agents, tools and RAG to their applications
  • Laravel developers who want a solid NeuronAI foundation before building agentic features
  • Software engineers who want to understand how agents work under the hood, not only call an API