Skip to content

Commit 76212d7

Browse files
committed
Add PECL installation instructions
1 parent 7719c80 commit 76212d7

File tree

8 files changed

+157
-964
lines changed

8 files changed

+157
-964
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
Tensor is a library and extension that provides objects for scientific computing in [PHP](https://php.net). The multithreaded extension is especially suited for applications where efficient computing of large sets of numbers is required. In some cases, the extension is 340X faster than the same operation in PHPland. Tensor is used by libraries such as [Rubix ML](https://rubixml.com) to build and accelerate machine learning algorithms such as neural networks and linear regressions.
66

77
## Installation
8-
Install Tensor into your project with [Composer](https://getcomposer.org/):
8+
Follow the instructions below to install either Tensor PHP or the Tensor extension.
9+
10+
### Tensor PHP
11+
Install Tensor PHP into your project with [Composer](https://getcomposer.org/):
912
```sh
1013
$ composer require rubix/tensor
1114
```
1215

16+
### Tensor Extension
17+
Install the Tensor extension via [PECL](https://pecl.php.net/package/Tensor):
18+
```sh
19+
$ pecl install tensor
20+
```
21+
1322
## Requirements
1423
- [PHP](https://php.net) 7.2 or above
1524

@@ -25,7 +34,7 @@ $ composer require rubix/tensor
2534
- [automake](https://www.gnu.org/software/automake/) 1.14 or later
2635
- Ubuntu build-essentials
2736

28-
## Compiling the Extension
37+
## Manually Compiling the Extension
2938
Clone the repository locally using [Git](https://git-scm.com/):
3039
```sh
3140
$ git clone https://github.com/RubixML/Tensor
@@ -47,8 +56,7 @@ $ make
4756
$ sudo make install
4857
```
4958

50-
## Installing the Extension
51-
Add the following line to your `php.ini` configuration to install the extension.
59+
Finally, add the following line to your `php.ini` configuration to install the extension.
5260
```
5361
extension=tensor.so
5462
```

ext/tensor/decompositions/decomposition.zep.c

Lines changed: 0 additions & 22 deletions
This file was deleted.

ext/tensor/decompositions/decomposition.zep.h

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)