AI & ML with PHP
64 subscribers
10 photos
35 links
This channel is intended for developers, who interesting in using AI and ML with PHP.
Download Telegram
The MCP protocol (Message Control Protocol) plays a crucial role in enhancing communication with Large Language Models (LLM). MCP ensures reliable message exchange by managing message formatting, transmission, and error handling. This becomes particularly beneficial when interacting with LLM models.

See this video about MCP. Just few minutes of very high quality content, explaining what is MCP.
https://www.youtube.com/watch?v=qPVtVulhFC4
👍6
Windsurf Wave 7: Cascade Comes to JetBrains!

Great news! Windsurf (formerly Codeium) has launched Wave 7, bringing the full Cascade AI experience to JetBrains IDEs like IntelliJ, PhpStorm, WebStorm, and PyCharm.
https://windsurf.com/blog/windsurf-wave-7

Now you can:
Use Write, Chat, and Legacy modes
Access all Cascade tools inside the editor
Work with AI directly in your terminal
Enjoy a smooth agent-based coding flow

This is a big step for AI coding tools in JetBrains. And more features are coming soon!

🌊 It’s all Windsurf now — one name, one platform, full AI power for your PHP+ projects!
🔥6👍21
Scalars, Vectors, Matrices & Tensors — The Language of ML

If you're diving into Machine Learning, don't skip the basics! 💡
Understanding scalars, vectors, matrices, and tensors is crucial — they’re the building blocks of how data is represented and processed.

🔹 Scalar → A single number (like temperature: 36.6)
🔹 Vector → A list of numbers (like pixel values in a grayscale image row)
🔹 Matrix → 2D grid of numbers (like an image with width & height)
🔹 Tensor → Multi-dimensional array (think colored videos with time, RGB, height & width!)

From feeding input to a neural network to backpropagation — it's all tensors under the hood.

Master these, and you're speaking the native tongue of ML models.
You may see the code example for each of these elements:
https://aiwithphp.org/examples/mathematics/index
Read curefully:
https://apphp.gitbook.io/artificial-intelligence-with-php/machine-learning/mathematics-for-ml/linear-algebra
👍6
Using spaCy with PHP: Natural Language Processing in Your PHP Apps!

Did you know you can harness the power of spaCy (https://spacy.io) - one of Python’s most advanced NLP libraries - even in a PHP project? Here’s how! 👇

This library - spaCy - offers fast and accurate tokenization, named entity recognition, part-of-speech tagging, and more. While PHP isn’t natively built for NLP, you can bridge the gap with Python.

But, your may easily integrate spaCy with PHP
1. Create a Python script
Use spaCy to process text and output results as JSON. Example:

# nlp.py
import spacy
import sys
import json

nlp = spacy.load("en_core_web_sm")
text = sys.argv[1]
doc = nlp(text)

result = {
"tokens": [token.text for token in doc],
"entities": [(ent.text, ent.label_) for ent in doc.ents]
}
print(json.dumps(result))


2. Call the script from PHP

$text = "Elon Musk founded SpaceX in 2002.";
$escapedText = escapeshellarg($text);
$command = "python3 nlp.py $escapedText";
$output = shell_exec($command);
$result = json_decode($output, true);

print_r($result);
?>


That’s it! You now have spaCy-powered NLP inside your PHP app. It's perfect choice for chatbots, content tagging, semantic search, or anything involving language understanding.
👍4👏1
The most popular ML library in PHP reaches 1,000,000 downloads. Only last 24h - more than 10,000 - here we go!
👍42🔥2
PHP - Oh Really, Tensors?

Extension for PHP, that provides high performance tensor mathematics. It supports a wide range of mathematical operations on tensors, including element-wise computations, reductions, linear algebra functions, and more.

https://github.com/krakjoe/ort
👍5
Announcing the Official PHP SDK for MCP

The Model Context Protocol (MCP) is an open protocol introduced by Anthropic to enable AI applications to connect with and utilize external tools and data sources, akin to a standardized "USB-C port" for AI systems.

https://thephp.foundation/blog/2025/09/05/php-mcp-sdk/
👍5
🚀 New PHP Library Release: PrettyPrint

Just published PrettyPrint, a tiny, zero-dependency PHP utility that formats arrays with clean, Python-like readability — inspired by PyTorch!

Features:
• Callable pretty-printer for numeric arrays
• Aligned 2D table formatting
• 3D tensor with head/tail blocks
• Summarized tensor-style views
• Flexible output options
• Perfect for ML experiments, debugging, logging & teaching

📦 Packagist: https://packagist.org/packages/apphp/pretty-print

Give it a try and make your arrays look awesome! 🎉
👍5
https://dev.to/mark_redding_fb1c365503df/accelerating-php-development-with-cursor-ai-ln1

Mark Redding, a manager at Best Name Badges, has been exploring AI-powered development tools to streamline PHP workflows. Cursor AI has proven to be a game-changer for the team.
👍4
New Repo: Awesome PHP Machine Learning

I’ve just launched awesome-php-ml — a curated list of Machine Learning, AI, and LLM tools for PHP developers.

It covers:
- Machine Learning & Deep Learning
- LLMs, agents & AI APIs
- Math, statistics & vector search
- Tools, model serving & framework integrations (Laravel, Symfony)
- Resources & platforms
- and more

👉 https://github.com/apphp/awesome-php-ml

If you’re building AI with PHP or looking for the best libraries in the ecosystem, check it out
Contributions welcome!
👍71