docs: Reorder PIE to be first, since PECL is deprecated

This commit is contained in:
michael-grunder
2025-11-26 18:29:34 -08:00
parent 3abcd155a5
commit a123d3aab0
+16 -8
View File
@@ -2,6 +2,22 @@
phpredis can be installed from PECL, from source, or with pre-built packages provided by most distributions.
## PIE (PHP Installer for Extensions)
If you use [PIE](https://github.com/cuaxin/pie) to install PHP extensions from [Packagist](https://packagist.org/packages/phpredis/phpredis):
```bash
pie install phpredis/phpredis
```
You can also install a specific tag:
```bash
pie install phpredis/phpredis:6.2.0
pie install phpredis/phpredis:6.3.0RC1
```
**NOTE**: PHP has deprecated PECL and recommends using PIE for installing extensions.
## PECL
Pull the latest stable release from [PECL](https://pecl.php.net/package/redis):
@@ -33,14 +49,6 @@ make && make install
After `make install`, enable the extension (for example `echo "extension=redis.so" > /etc/php.d/redis.ini`) and confirm with `php -m | grep redis`.
## Composer / PIE
If you use [PIE](https://github.com/cuaxin/pie) to install PHP extensions from [Packagist](https://packagist.org/packages/phpredis/phpredis):
```bash
pie install phpredis/phpredis
```
# Binary packages
Most distributions provide a packaged extension. Package names vary by PHP version; replace the PHP version in the command if needed.