Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
Home/PHP/AI utilities
PHP

PHP

Pragmatic server-side language that powers a large share of the web.

Paradigm
OOP, procedural, functional features
Typing
Dynamic with gradual typing (strict_types)
Memory
Reference counting + cycle collector
Runs
Zend Engine, bytecode + OPcache, optional JIT
Concurrency
Shared-nothing per request; Fibers (8.1)

AI utilities

Libraries for machine learning and LLM integration in PHP, plus AI coding assistants that work with any language.

The AI ecosystem changes quickly. Check each project's repository for current maintenance status and versions before adopting.
LLM APIs

openai-php/client

Community-maintained OpenAI client, with a Laravel integration.

LLM orchestration

LLPhant verify

Generative-AI framework for PHP, inspired by LangChain.

Machine learning

Rubix ML

Classic ML algorithms (classification, clustering) in pure PHP.

Local models

TransformersPHP verify

Runs Hugging Face transformer models via ONNX Runtime.

LLM APIs

Anthropic PHP SDK verify

Check Anthropic's documentation for current official PHP SDK status.

AI-assisted development

Agentic coding

Claude Code

Anthropic's coding agent for the terminal, IDEs, desktop and web.

Completion & chat

GitHub Copilot

In-editor suggestions and chat across many IDEs.

AI editor

Cursor

A VS Code-based editor built around AI assistance.

Saved in this browser only. Part of From code to production (0/5).