> For the complete documentation index, see [llms.txt](https://apphp.gitbook.io/ai-for-php-developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apphp.gitbook.io/ai-for-php-developers/english/getting-started/introduction.md). Agents can also search and read this documentation through its [MCP server](https://apphp.gitbook.io/ai-for-php-developers/~gitbook/mcp).

# Introduction

This book grew out of a simple observation: PHP developers almost always find themselves on the opposite side of the barricades from machine learning. On one side is the world of web applications, APIs, databases, business logic, and real users. On the other is a world of articles about neural networks, overloaded with formulas, Python code, and a persistent feeling that this is "not for us". As a result, AI is either perceived as a black box or ignored altogether.

The goal of this book is to remove this artificial division.

A PHP developer already knows how to think in terms of models, even if they have never called it machine learning. We constantly deal with functions, parameters, constraints, errors, and approximations. We write code that takes input data and produces an output, expecting it to be "good enough". Machine learning is a continuation of this logic – not magic, and not a separate discipline reserved for a chosen few.

This book is supported by additional resources that will help you move from theory to practice.

**Interactive PHP Examples**

You can experiment with practical PHP examples related to the topics covered in this book.

Visit our interactive examples website to run PHP code directly in your browser, change parameters, experiment with algorithms, and see the results.

[**Explore Interactive Examples →**](https://aiwithphp.org/books/ai-for-php-developers/examples/)

**Continue Learning with EventumX**

Want to go further?

Visit [EventumX](https://eventumx.com/), an online learning platform where you can continue exploring Machine Learning and AI through practical courses and hands-on exercises.

[**Explore EventumX →**](https://eventumx.com/)
