This is a PHP extension library collection with *.so
files to make adding libraries to PHP easy.
- Visit my website for other cool projects!
Current Versions
-
php@8.*
- Download
pcntl.so
from the appropriate subdirectory of this repo based on your php version - Move to extensions
- Move
pcntl.so
file to/Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx
- Update INI
- Add
extension=pcntl.so
to yourphp.ini
- Tip: Use
php --ini
to locate the file.
- Tip: Use
- Download
Current Versions
- php@5.*
- [email protected].*
- [email protected].*
- [email protected].*
- [email protected].*
- php@8.*
- Mkdir
include/php
in php root * Example:/Applications/MAMP/bin/php/php5.5.10/include/php
. - Download php source file from php.net
* Example: If you want to compile extension for
php 5.4.42
, then downloadphp5.4.42.tar.gz
- Extract tar to the
include/php
directory. - Execute
./configure
ininclude/php
. cd /Applications/MAMP/bin/php/phpX.Y.Z/bin
and execute./pecl install redis
(for default version) * Tip:: Run./pecl install redis-2.2.8
for special version.- Add
extension="redis.so"
to the end ofphp.ini
- You may need install
autoconf
viabrew install autoconf
. cd /Applications/MAMP/bin/php/phpX.Y.Z/bin
and execute./pecl install redis
(for default version) * Tip: Run./pecl install redis-3.1.2
for special version.- Add
extension="redis.so"
to the end ofphp.ini
- Download
pcntl.so
from the appropriate subdirectory of this repo based on your php version - Move to extensions
* Move
redis.so
file to/Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx
- Update INI
* Add
extension=redis.so
to yourphp.ini
- Tip: Use
php --ini
to locate the file.
- Tip: Use
If you find any issues feel free to open a request in the Issues tab. If I have the time I will try to solve any issues but cannot make any guarantees. Feel free to contribute yourself.