Awesome Open Source
Awesome Open Source

Rubix ML

PHP from Packagist Latest Stable Version Downloads from Packagist Code Checks GitHub

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


Install Rubix ML into your project using Composer:

$ composer require rubix/ml


  • PHP 7.4 or above




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.

Interact With The Community


See for guidelines.


The code is licensed MIT and the documentation is licensed CC BY-NC 4.0.

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (298,245
Learning (75,687
Machine Learning (40,927
Ml (40,927
Machine Learning Library (40,927
Deep Learning (39,340
Algorithms (38,042
Artificial Intelligence (20,151
Ai (20,151
Neural Network (16,117
Natural Language Processing (15,895
Classification (13,467
Data Science (11,444
Anomaly Detection (1,143
Recognizer (1,022
Cross Validation (231
Php Ml (17
Php Machine Learning (12
Php Ai (4