Skip to content

Commit c6b00ed

Browse files
Merge pull request NoiseByNorthwest#327 from NoiseByNorthwest/NoiseByNorthwest-patch-1
Update README: document installation via PIE
2 parents 2522567 + 0278ddb commit c6b00ed

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,19 @@ Current requirements are:
4848

4949
* PHP development package (corresponding to your installed PHP version).
5050
* zlib development package:
51-
* For Debian based distros (including Ubuntu, Kubuntu...), just run: `sudo apt-get install zlib1g-dev`.
52-
* For Fedora based distros (including CentOS, AlmaLinux, Rocky Linux...), just run: `sudo dnf install zlib-devel`.
51+
* For Debian-based distros (including Ubuntu, Kubuntu...), just run: `sudo apt-get install zlib1g-dev`.
52+
* For Fedora-based distros (including CentOS, AlmaLinux, Rocky Linux...), just run: `sudo dnf install zlib-devel`.
5353

5454
### Install the extension
5555

56+
#### Install via PIE
57+
58+
```shell
59+
pie install noisebynorthwest/php-spx
60+
```
61+
62+
#### Install from source
63+
5664
```shell
5765
git clone https://github.com/NoiseByNorthwest/php-spx.git
5866
cd php-spx
@@ -63,7 +71,9 @@ make
6371
sudo make install
6472
```
6573

66-
Then add `extension=spx.so` to your *php.ini*, or in a dedicated *spx.ini* file created within the include directory.
74+
#### Activate & configure SPX
75+
76+
After installing SPX, add `extension=spx.so` to your *php.ini*, or in a dedicated *spx.ini* file created within the include directory.
6777
You may also want to override [default SPX configuration](#configuration) to be able to profile a web request, with [this one](#private-environment) for example for a local development environment.
6878

6979

0 commit comments

Comments
 (0)