rubix/ml
最新稳定版本:2.5.3
Composer 安装命令:
composer require rubix/ml
包简介
A high-level machine learning and deep learning library for the PHP language.
关键字:
README 文档
README
A high-level machine learning and deep learning library for the PHP language.
- Developer-friendly API is delightful to use
- 40+ supervised and unsupervised learning algorithms
- Support for ETL, preprocessing, and cross-validation
- Open source and free to use commercially
Installation
Install Rubix ML into your project using Composer:
composer require rubix/ml
Requirements
- PHP 7.4 or above
Recommended
- Tensor extension for fast Matrix/Vector computing
Optional
- GD extension for image support
- Mbstring extension for fast multibyte string manipulation
- SVM extension for Support Vector Machine engine (libsvm)
- PDO extension for relational database support
- GraphViz for graph visualization
Documentation
Read the latest docs here.
What is Rubix ML?
Rubix ML is a free open-source machine learning (ML) library that allows you to build programs that learn from your data using the PHP language. We provide tools for the entire machine learning life cycle from ETL to training, cross-validation, and production with over 40 supervised and unsupervised learning algorithms. In addition, we provide tutorials and other educational content to help you get started using ML in your projects.
Getting Started
If you are new to machine learning, we recommend taking a look at the What is Machine Learning? section to get started. If you are already familiar with basic ML concepts, you can browse the basic introduction for a brief look at a typical Rubix ML project. From there, you can browse the official tutorials below which range from beginner to advanced skill level.
Tutorials & Example Projects
Check out these example projects using the Rubix ML library. Many come with instructions and a pre-cleaned dataset.
- CIFAR-10 Image Recognizer
- Color Clusterer
- Credit Default Risk Predictor
- Customer Churn Predictor
- Divorce Predictor
- DNA Taxonomer
- Dota 2 Game Outcome Predictor
- Human Activity Recognizer
- Housing Price Predictor
- Iris Flower Classifier
- MNIST Handwritten Digit Recognizer
- Text Sentiment Analyzer
- Titanic Survival Predictor
Interact With The Community
Contributing
See CONTRIBUTING.md for guidelines.
License
The code is licensed MIT and the documentation is licensed CC BY-NC 4.0.
rubix/ml 适用场景与选型建议
rubix/ml 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.25M 次下载、GitHub Stars 达 2.18k, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「cart」 「analytics」 「classification」 「Algorithm」 「inference」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rubix/ml 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rubix/ml 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rubix/ml 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel 11 and above Shopping cart
Admin Hub for GetCandy. A modern headless e-commerce solution for Laravel PHP framework.
Analytics chooser extensions for site settings.
A Laravel Nova Card to show Fathom Analytics stats.
universal shopping basket
A PHP (and Laravel) package to interface with the Snipcart api.
统计信息
- 总下载量: 1.25M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2189
- 点击次数: 40
- 依赖项目数: 27
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04