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 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
Hey everyone!
Just published a new article: AI for PHP Developers — Practical Use of TransformersPHP!
Dive into how you can bring real AI into your PHP projects without complex infrastructure, using TransformersPHP for tasks like embeddings, classification and semantic search — all right inside your code.

Read it here:
English:
https://medium.com/@leumas.a/ai-for-php-developers-practical-use-of-transformersphp-fa9a2416bafc
Feedback, thoughts, and questions are very welcome!
Russian:
https://habr.com/ru/articles/993966/
👍4🔥4
Want to get a real feel for machine learning in practice?

Here’s a simple but powerful exercise: classify thousands of digits (0 vs 1) from the classic MNIST dataset (12,666 train samples and 2,116 test samples) using logistic regression – trained with gradient descent.
Just 5 epochs!

What you’ll get out of it:

- see how a model actually works with image data
- understand where linear models start to break down
- try a clean implementation in pure PHP (accuracy: 99.91%)
- compare it with a more production-ready approach using RubixML (accuracy: 99.95%)

If you’ve been meaning to move from theory to something hands-on, this is a great place to start:
https://aiwithphp.org/books/ai-for-php-developers/examples/part-3/logistic-regression/case-0/mnist-0-1
👍5
My new article on Habr (in Russian):
"AI for PHP Developers. Part 6: Bag of Words and TF-IDF – How a Computer Turns Text into Math"
https://habr.com/ru/articles/1034874/
👍21
Hey, there! 👋

Looking for something to read this weekend?

I've put together a small overview of the rapidly growing AI ecosystem in PHP – from simple OpenAI API integrations to modern agent frameworks, multi-agent systems, and full-fledged agent platforms.

If you've been wondering what's happening beyond basic LLM calls in the PHP world, this article covers some of the most interesting projects and trends shaping the ecosystem today.

📖 Read here in English:
https://medium.com/@leumas.a/the-ai-agent-ecosystem-in-php-from-simple-openai-calls-to-multi-agent-platforms-320a74e78d95
📖 in Russian:
https://habr.com/ru/articles/1041594/
👍6