PHPackages                             torian257x/ai-php-rubix-wrap-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. torian257x/ai-php-rubix-wrap-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

torian257x/ai-php-rubix-wrap-laravel
====================================

Meant for AI using a wrapped Rubix ML library to make it very approachable

0.9.1.4(4y ago)26726MITPHP

Since Aug 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/torian257x/ai-php-rubix-wrap-laravel)[ Packagist](https://packagist.org/packages/torian257x/ai-php-rubix-wrap-laravel)[ Docs](https://github.com/torian257x/rubixai)[ RSS](/packages/torian257x-ai-php-rubix-wrap-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

torian257x/ai-php-rubix-wrap-laravel
====================================

[](#torian257xai-php-rubix-wrap-laravel)

This package is about Artificial Intelligence, Machine Learning and Pattern Recognition in Laravel.

The video tutorial with examples on how to use the library can be found here:

Video tutorial
--------------

[](#video-tutorial)

[how to use AI in Laravel](https://youtu.be/0i2npIenj70) ([full playlist](https://www.youtube.com/watch?v=0i2npIenj70&list=PLInLuJxdnhE-qZJHhhQka0osgYz8_Kn6i))

Example code
------------

[](#example-code)

Do AI with 2 lines of code:

```
$all_animals = DogsAndCats::all();

$report = RubixAi::train($all_animals, 'dog_or_cat');

```

that's it.

This creates a file in your laravel storage/ai\_rubix/ folder that contains the model.

This model then will be used to predict:

```
$isDogOrCat = RubixAi::predict($needs_prediction);

echo $isDogOrCat; //prints ['dog']

```

Installation
------------

[](#installation)

```
composer require torian257x/ai-php-rubix-wrap-laravel

```

If there are any issues, please have a look at  in case you are trying to do something special. I recommend as well installing tensor  .

Default Estimator
-----------------

[](#default-estimator)

`new KDNeighborsRegressor()` for regression (say estimation of price)

`new KDNeighbors()` for classification (say choose dog or cat)

Default Transformers
--------------------

[](#default-transformers)

```
array_filter(
 [
  new NumericStringConverter(),
  new MissingDataImputer(),
  $needs_ohe ? new OneHotEncoder() : false,
  new MinMaxNormalizer(),
 ]);

```

Customize
---------

[](#customize)

You can [choose your own estimator](https://docs.rubixml.com/latest/choosing-an-estimator.html) if you don't like the default Just be sure to pass it as argument to `RubixAi::train(..., estimator_algorithm:)`

Same for transformers.

You can customize the model file name as well as what attributes / columns to ignore.

References
----------

[](#references)

This library is using a [PHP standalone AI wrapper](https://github.com/torian257x/ai-php-rubix-wrap) of [Rubix ML](https://github.com/RubixML/ML)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

1787d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f81e0df7bc60738ed970122e1a5cf30bda81af5b651eaa8b25fc1dee653e3c5b?d=identicon)[Torian257x](/maintainers/Torian257x)

---

Top Contributors

[![torian257x](https://avatars.githubusercontent.com/u/2072058?v=4)](https://github.com/torian257x "torian257x (35 commits)")

---

Tags

ailaravelmachine-learningphplaravelRubixAi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/torian257x-ai-php-rubix-wrap-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/torian257x-ai-php-rubix-wrap-laravel/health.svg)](https://phpackages.com/packages/torian257x-ai-php-rubix-wrap-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
