能力标签
PHP 机器学习
🛠
AI工具

PHP 机器学习

基于 PHP · 开源免费,本地部署,数据完全自主可控
英文名:awesome-php-ml
⭐ 107 Stars 🍴 8 Forks 💻 PHP 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
aimachine-learningmlphp
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,PHP 机器学习 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

PHP 机器学习 是一款基于 PHP 的开源工具,在 GitHub 上收获 0k+ Star,是ai、machine-learning、ml、php领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
PHP 机器学习 依赖 PHP 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 PHP 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 PHP 机器学习 的版本更新,及时通知重要功能变化。

📋 工具概览

PHP 机器学习 是一款基于 PHP 开发的开源工具,专注于 ai、machine-learning、ml 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 107
开发语言
PHP
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
AI工具
Forks
8

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

PHP 机器学习 是一款基于 PHP 开发的开源工具,专注于 ai、machine-learning、ml 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/apphp/awesome-php-ml
cd awesome-php-ml

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
awesome-php-ml --help

# 基本运行
awesome-php-ml [options] <input>

# 详细使用说明请查阅文档
# https://github.com/apphp/awesome-php-ml
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# awesome-php-ml 配置说明
# 查看配置选项
awesome-php-ml --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export AWESOME_PHP_ML_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 58/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Awesome PHP Machine Learning & AI

Awesome GitHub stars Resources Last commit License Link Check

The most comprehensive curated list of Machine Learning, Artificial Intelligence, NLP, LLM and Data Science libraries for PHP.

Inspired by awesome-php and the broader Awesome ecosystem.

Goal: make it easy to build intelligent systems with PHP — from classic ML to modern LLM-based workflows.

Want to add a project? See the Contributing section below for inclusion criteria and submission guidance.

Requirements

PHP Version Requirements: - Minimum: PHP 7.4+ (most libraries already support PHP 8.1+/8.2+) - Recommended: PHP 8.1+ for best performance and features - Latest features: PHP 8.2+ for some cutting-edge libraries

Common dependencies: - Extensions: mbstring, curl, json, gd (for image processing) - Optional: redis, pdo_pgsql (for vector search), ffi (for native bindings)

Memory considerations: - Basic ML: 256MB+ RAM - Neural networks: 512MB+ RAM - Large datasets: 1GB+ RAM recommended

---

Install a core ML library

composer require rubix/ml composer require php-ai/phpml

Install LLM client

composer require openai-php/client

Install vector search for RAG

composer require llphant/llphant ```

Basic examples: - Classification: Use RubixML/RubixML with KNearestNeighbors for simple classification tasks - LLM integration: Use openai-php/client to call GPT models from PHP - Text analysis: Use php-ai/php-ml for sentiment analysis and tokenization - Vector search: Use LLPhant/LLPhant with pgvector for semantic search

How to use this list

Quick Start

For beginners new to PHP ML/AI:

```bash

Example "recipes"

- I want to build a Laravel RAG app Use an LLM client like 🌟 openai-php/client, embeddings + vector search via 🌟 LLPhant/LLPhant with 🌟 pgvector/pgvector or 🌟 meilisearch/meilisearch-php, and orchestrate agents/RAG flows with 🌟 neuron-core/neuron-ai, integrating into Laravel using 🌟 openai-php/laravel and the packages under Laravel & Framework Integrations.

- I only need translation or vision For translation, see 🌟 deepl-php and 🌟 googleapis/google-cloud-php under Interop & Model Serving. For image/vision workloads, combine Computer Vision, Image & Video Processing libraries with cloud AI services via 🌟 symfony/ai or openai-php/client from LLMs & AI APIs.

Courses & Tutorials

  • Fun With OpenAI and Laravel – Laracasts series showing how to integrate OpenAI into Laravel apps
  • Laravel Cloud Skills – Interactive learning platform for building and deploying Laravel applications, including modern AI and cloud workflows

LLMs & AI APIs

Clients, SDKs, and frameworks for calling hosted LLMs and other AI providers from PHP.

  • aiaccess/ai-access – Unified PHP AI client providing a consistent interface for multiple providers (OpenAI, Anthropic, Gemini, DeepSeek, Grok) with support for chat, embeddings, batch processing, and provider switching
  • aimeos/prismaGitHub stars Lightweight PHP package providing a unified interface for text, image, audio, and video AI providers
  • 🧪 adrienbrault/instructrice – Typed LLM outputs in PHP with flexible schema support (OpenAI, Claude, Gemini, etc.) and type-safe handling of structured responses
  • ArdaGnsrn/ollama-php – A PHP client library for the Ollama LLM server, enabling completions, chat, model management, and embeddings via Ollama's API
  • Clarifai/clarifai-php-grpc – Official Clarifai gRPC PHP client for accessing Clarifai's AI APIs (vision and text recognition)
  • cognesy/instructor-php – Structured-output helper for LLM responses
  • deepseek-php/deepseek-php-client – PHP client library for integrating with the DeepSeek AI API, providing a fluent API for model queries, streaming results, and support for multiple HTTP clients and models
  • 🌟 dtyq/magicGitHub stars Open-source enterprise AI agent platform with generalist agents, workflow orchestration, IM integration, collaborative office features, and support for multiple LLMs
  • elastic/elasticsearch-chatgpt-php – Experimental PHP library that uses ChatGPT to translate natural language into Elasticsearch DSL queries and perform semantic search over your indices
  • FunkyOz/mulagent – Multi-agent orchestration framework for LLM applications
  • 🌟 google-gemini-php/clientGitHub stars Gemini PHP is a community-maintained PHP API client that allows you to interact with the Gemini AI API
  • ⚠️ HosonoDE/EasyAI-PHP – High-level AI integration library for PHP that simplifies using LLMs
  • 🧪 carmelosantana/php-agents – PHP framework for building AI agents with tool use, provider abstraction and multi-model support
  • 🌟 kambo-1st/langchain-php GitHub stars A PHP port of the LangChain framework for building composable LLM-powered applications
  • 🌟 llm-agents-php/agentsGitHub stars LM Agents is a PHP library for building and managing Language Model (LLM) based agents
  • llm-agents-php/prompt-generator – Prompt generator for LLM agents with interceptors
  • ModelFlow-AI (GitHub org) – Collection of PHP packages for unified access to AI models, embeddings, and chat (OpenAI, Mistral, Ollama)
  • mozex/anthropic-php – Community-maintained PHP API client for the Anthropic (Claude) AI API, supporting messages, streaming, tool use, and batch processing
  • mzarnecki/php-rag – PHP RAG toolkit for connecting vector search and LLMs in retrieval-augmented workflows
  • 🌟 openai-php/clientGitHub stars Official OpenAI PHP client
  • 🌟 orhanerday/open-aiGitHub stars Popular OpenAI PHP SDK
  • prism-php/bedrock – AWS Bedrock provider for the Prism PHP framework, adding Bedrock LLM and embeddings support to Laravel Prism integrations
  • sarfraznawaz2005/ai-team – Package to build and run collaborative teams of AI members with role/task assignments
  • SearchAugmentedLLM – PHP search-augmented LLM tool that performs web search, extracts, chunks and ranks content to provide context for LLM responses (ideal for RAG applications)
  • skito/aipi-php – Universal API client for common AI models in PHP, offering a unified interface to interact with multiple LLM providers
  • softcreatr/php-mistral-ai-sdk – PHP SDK for the Mistral AI API, providing an easy wrapper to call Mistral's LLM and AI endpoints (chat, embeddings, fine-tuning etc.)
  • takaaki-mizuno/php-llm-json-adapter – Adapter to normalize and return LLM responses as structured JSON using JSON Schema, with support for multiple providers (OpenAI, Gemini, Bedrock, Ollama)
  • thojou/php-llm-documents – PHP library for LLM-based document processing (splitting, embeddings, vector store, search) inspired by LangChain/DocTran
  • utopia-php/agents – Simple, lightweight PHP library for AI agent orchestration with multi-provider support (OpenAI, Anthropic, Deepseek, Perplexity, XAI)

Laravel & Framework Integrations

Symfony & Framework Integrations

  • openai-php/symfony – OpenAI PHP for Symfony integration
  • 🌟 symfony/aiGitHub stars – Symfony AI: built-in AI components and bundles for Symfony apps
  • soleinjast/symfony-markdown-response-bundle – Symfony bundle that automatically serves Markdown versions of HTML responses to clients
  • 🧪 symfony/ai-agent – Symfony AI Agent component for building agentic applications that interact with users, execute tasks, and manage workflows
  • 🧪 symfony/ai-bundle – Symfony integration bundle that brings together Symfony AI components for agents, chat, platforms, stores, RAG, tools, and configuration
  • 🧪 symfony/ai-platform – Experimental Symfony AI Platform component providing a unified abstraction for interacting with AI models, providers, messages, embeddings, speech, and provider-specific bridge packages
  • symfony/ai-store – Symfony AI component providing a vector store abstraction for semantic search and RAG workflows
  • symfony/mcp-bundle – Symfony bundle for exposing MCP tools, prompts, and resources over HTTP or STDIO using the official MCP SDK

---

WordPress Integrations

  • WordPress/php-ai-client – Provider-agnostic PHP AI SDK offering a unified API for interacting with multiple LLM providers (OpenAI, Anthropic, Gemini, etc.), supporting text, image, speech, streaming, and multimodal operations

---

🎯 aiskill88 AI 点评 A 级 2026-05-28

全面PHP机器学习工具集,值得关注

⚡ 核心功能

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

参考README文档
💡 AI Skill Hub 点评

AI Skill Hub 点评:PHP 机器学习 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

📚 深入学习 PHP 机器学习
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 awesome-php-ml
原始描述 开源AI工具:The most comprehensive curated list of Machine Learning, Artificial Intelligence。⭐107 · PHP
Topics aimachine-learningmlphp
GitHub https://github.com/apphp/awesome-php-ml
License MIT
语言 PHP
🔗 原始来源
🐙 GitHub 仓库  https://github.com/apphp/awesome-php-ml 🌐 官方网站  https://apphp.github.io/awesome-php-ml/

收录时间:2026-05-28 · 更新时间:2026-05-28 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。