phpsci/phpsci

This package is abandoned and no longer maintained. No replacement package was suggested.

Scientific Computing Library for PHP.

Maintainers

Details

github.com/phpsci/phpsci

Source

Issues

Installs: 229

Dependents: 0

Suggesters: 0

Security: 0

Stars: 163

Watchers: 14

Forks: 11

Open Issues: 1

Language:C

dev-patch-1 2018-09-29 15:54 UTC

This package is not auto-updated.

Last update: 2023-07-22 07:02:00 UTC


README

68747470733a2f2f692e696d6775722e636f6d2f516f496268716a2e706e67

PHPSci CArray is a high-performance scientific computing library for PHP developed in C and based on the original NumPy code. CArrays offer a solid alternative to PHP arrays as well as compatibility with codes developed using NumPy.

  • High Performance Indexing and Data Access
  • Low memory footprint compared to PHP Arrays
  • Efficient shape, initializers, linear algebra and mathematical methods.
  • Out of the box GPU integration (Cuda)

Installing

It's really easy to compile this extension using Linux environments.

Requirements

  • php-devel (php-dev)
  • PHP 7.2
  • OpenBLAS

Optional

  • cuBLAS (For GPU Integration)

Ubuntu 16.04

$ add-apt-repository -y ppa:ondrej/php
$ apt-get update
$ apt-get install libblas-dev libatlas-base-dev liblapacke-dev php7.2-dev
$ phpize
$ ./configure
$ make test
$ make install

Ubuntu 14.04

$ add-apt-repository -y ppa:ondrej/php
$ apt-get update
$ apt-get install libopenblas-dev liblapacke-dev php7.2-dev
$ phpize
$ ./configure
$ make test
$ make install

Don't forget to check if the extension is enabled in your php.ini file.

Apache/NGINX Users: Don't forget to restart your services.