# RubixML/ML

A high-level machine learning and deep learning library for the PHP language.

Repository: https://github.com/RubixML/ML
Canonical: https://ross.abutalabs.com/products/rubixml-ml
Homepage: https://rubixml.github.io/ML
Language: PHP
License: MIT
License Family: permissive
Topics: machine-learning, analytics, php, classification, clustering, regression, anomaly-detection, deep-learning, natural-language-processing
Last push: 2026-08-26T20:25:13+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3122, "days_push": 7, "days_rel": 8, "gap_med": 2.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2204, forks 193 (observed 2026-08-28T04:06:25.860677+00:00)

## What it is
Rubix ML is a high-level open-source machine learning and deep learning library for PHP, offering 40+ supervised and unsupervised algorithms. It covers the full ML lifecycle including ETL, preprocessing, training, cross-validation, and production deployment.

## Use cases
- train a classifier in php
- do regression analysis with php
- cluster data using php
- detect anomalies in my dataset
- build a deep learning model in php
- run nlp tasks like sentiment analysis in php
- preprocess and etl data for machine learning in php
- cross-validate models in a php app

## When to choose
- your project is written in PHP and you want in-process machine learning
- you need a broad set of ML algorithms with a developer-friendly API
- you want ETL, training, and validation in one library
- you need a commercially usable MIT-licensed ML library

## When to avoid
- you need cutting-edge deep learning with GPU acceleration and large ecosystem support
- your stack is Python-based where scikit-learn or PyTorch are more mature
- you need distributed large-scale training

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, deep-learning, nlp, data-science, etl
- domain: machine-learning, data-science
- platform: php
- tags: classification, clustering, regression, anomaly-detection, cross-validation, supervised-learning, unsupervised-learning, natural-language-processing

## Member repositories
- RubixML/ML (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:25.860677+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:46:42.929561+00:00, confidence not recorded.
  - readme: https://github.com/RubixML/ML (fetched 2026-08-28T04:06:25.860677+00:00, sha d3ac4e3eca8c)
  - homepage: https://rubixml.github.io/ML (fetched 2026-08-29T10:26:54.180776+00:00, sha 387a10e301f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
