Tensor is a library and extension that provides objects for scientific computing in PHP.
Install Tensor into your project with Composer:
$ composer require rubix/tensor- PHP 7.2 or above
- A C compiler such as GCC, Clang, or Visual C++ to compile the extension
- Zephir parser to generate low level extension code
See this guide for additional requirements for compiling and installing the PHP extension from source with Zephir.
Clone the repository locally using Git:
$ git clone https://github.com/RubixML/TensorInstall dependencies using Composer:
$ composer installTo compile the PHP extension from source you can run composer compile:
$ composer compileTo compile and install the extension in one command you may call composer install-ext:
$ composer install-extThen, add the following line to your php.ini configuration:
extension=tensor
The code is licensed MIT and the documentation is licensed CC BY-NC 4.0.