PHPackages                             rindow/rindow-openblas-ffi - 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. rindow/rindow-openblas-ffi

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

rindow/rindow-openblas-ffi
==========================

The Openblas library for FFI on PHP

1.0.6(1y ago)1232.9k↓18.7%4BSD-3-ClausePHPPHP ^8.1CI passing

Since Mar 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rindow/rindow-openblas-ffi)[ Packagist](https://packagist.org/packages/rindow/rindow-openblas-ffi)[ RSS](/packages/rindow-rindow-openblas-ffi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (4)

Rindow OpenBLAS PHP Interface
=============================

[](#rindow-openblas-php-interface)

Status: [![Build Status](https://github.com/rindow/rindow-openblas-ffi/workflows/tests/badge.svg)](https://github.com/rindow/rindow-openblas-ffi/actions)[![Downloads](https://camo.githubusercontent.com/f035a13257d73df2f4562a45a70a503db43eafa6c2f343201b1158662d0249b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696e646f772f72696e646f772d6f70656e626c61732d666669)](https://packagist.org/packages/rindow/rindow-openblas-ffi)[![Latest Stable Version](https://camo.githubusercontent.com/c2725942e446f12f4643756e767ab2754efbf4d87dc1eabf3d0959b5478a89dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e646f772f72696e646f772d6f70656e626c61732d666669)](https://packagist.org/packages/rindow/rindow-openblas-ffi)[![License](https://camo.githubusercontent.com/a69bf0c8b25a388b3a4503f6634b6e00765ce8587f822e2e2557e92592fbc685/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e646f772f72696e646f772d6f70656e626c61732d666669)](https://packagist.org/packages/rindow/rindow-openblas-ffi)

The Rindow OpenBLAS FFI is universal Buffer for N-dimension and OpenBLAS and Mathematical library. It can be used via PHP's FFI interface.

- Provides Universal Buffer for 1-dimension for data exchange between C,C+ language and PHP.
- The OpenBLAS library available to PHP. Only the commonly used functions in OpenBLAS are provided.
- Provides commonly used Mathematical libraries not included in OpenBLAS.

You can do very fast N-dimensional array operations in conjunction with the [Rindow Math Matrix](https://github.com/rindow/rindow-math-matrix).

Very useful when you want to do deep learning with PHP!

Requirements
============

[](#requirements)

- PHP 8.1, PHP8.2, PHP8.3, PHP8.4
- Linux, Windows, macOS
- OpenBLAS 0.3.8 or later(Linux/Windows), vecLib(macOS)

How to download and setup
=========================

[](#how-to-download-and-setup)

### Windows

[](#windows)

The OpenBLAS Library release number is included in the filename of the rindow-openblas pre-built archive file.

-

Unzip it to a suitable location and set the execution path in the bin directory.

```
TMP>set PATH=%PATH%;\path\to\OpenBLAS\bin
```

And then set it up using composer.

```
C> mkdir \your\app\dir
C> cd \your\app\dir
C> composer require rindow/rindow-openblas-ffi
```

### Linux

[](#linux)

Install openblas with apt command

```
$ sudo apt install libopenblas0 liblapacke
```

And then set it up using composer.

```
$ mkdir \your\app\dir
$ cd \your\app\dir
$ composer require rindow/rindow-openblas-ffi
```

### macOS

[](#macos)

Set it up using composer.

```
$ mkdir \your\app\dir
$ cd \your\app\dir
$ composer require rindow/rindow-openblas-ffi
```

### Troubleshooting for Linux

[](#troubleshooting-for-linux)

Since rindow-matlib currently uses ptheads, so you should choose the pthread version for OpenBLAS as well. In version 1.0 of Rindow-matlib we recommended the OpenMP version, but now we have changed our policy and are recommending the pthread version.

Using the OpenMP version of OpenBLAS can cause conflicts and become unstable and slow. This issue does not occur on Windows.

If you have already installed the OpenMP version of OpenBLAS, you can delete it and install pthread version.

```
$ sudo apt install libopenblas0-pthread liblapacke
$ sudo apt remove libopenblas0-openmp
```

But if you can't remove it, you can switch to it using the update-alternatives command.

```
$ sudo update-alternatives --config libopenblas.so.0-x86_64-linux-gnu
$ sudo update-alternatives --config liblapack.so.3-x86_64-linux-gnu
```

If you really want to use the OpenMP version of OpenBLAS, please switch to the OpenMP version of rindow-matlib.

```
$ sudo update-alternatives --config librindowmatlib.so
There are 1 choices for the alternative librindowmatlib.so (providing /usr/lib/librindowmatlib.so).

  Selection    Path                                             Priority   Status
------------------------------------------------------------
* 0            /usr/lib/rindowmatlib-thread/librindowmatlib.so   95        auto mode
  1            /usr/lib/rindowmatlib-openmp/librindowmatlib.so   95        manual mode
  2            /usr/lib/rindowmatlib-serial/librindowmatlib.so   90        manual mode
  3            /usr/lib/rindowmatlib-thread/librindowmatlib.so   100       manual mode

Press  to keep the current choice[*], or type selection number: 1
```

Choose the "rindowmatlib-openmp".

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance46

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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 ~65 days

Recently: every ~95 days

Total

7

Last Release

401d ago

### Community

Maintainers

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

---

Top Contributors

[![yuichiis](https://avatars.githubusercontent.com/u/6028098?v=4)](https://github.com/yuichiis "yuichiis (8 commits)")

---

Tags

hpcmachine-learningmathematicsopenblasphpphp8scientific-computingmathrindowffiopenblas

### Embed Badge

![Health badge](/badges/rindow-rindow-openblas-ffi/health.svg)

```
[![Health](https://phpackages.com/badges/rindow-rindow-openblas-ffi/health.svg)](https://phpackages.com/packages/rindow-rindow-openblas-ffi)
```

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k504.0M277](/packages/brick-math)[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.1M40](/packages/markrogoyski-math-php)[phpseclib/bcmath_compat

PHP 5.x-8.x polyfill for bcmath extension

16720.7M17](/packages/phpseclib-bcmath-compat)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[rindow/rindow-math-matrix

The fundamental package for scientific matrix operation

13281.5k7](/packages/rindow-rindow-math-matrix)[jlawrence/eos

Parse and solve math equations without using 'eval()'.

1071.1M11](/packages/jlawrence-eos)

PHPackages © 2026

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