https://github.com/jrquick17/php-extension-library
PHP Extension Library
https://github.com/jrquick17/php-extension-library
pecl php php5 php6 php7 redis
Last synced: 10 months ago
JSON representation
PHP Extension Library
- Host: GitHub
- URL: https://github.com/jrquick17/php-extension-library
- Owner: jrquick17
- Created: 2019-02-20T20:16:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T23:31:01.000Z (almost 5 years ago)
- Last Synced: 2025-03-23T21:51:54.469Z (10 months ago)
- Topics: pecl, php, php5, php6, php7, redis
- Language: Shell
- Homepage: https://jrquick.com
- Size: 144 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-extension-library
## Index ##
* [About](#about)
* [Setup](#setup)
* [Documentation](#documentation)
* [Issues](#issues)
## About ##
This is a PHP extension library collection with `*.so` files to make adding libraries to PHP easy.
* Visit [my website](https://jrquick.com) for other cool projects!
## Setup
## Documentation
### pcntl.so
*Current Versions*
* php@7.1.*
* php@7.2.*
* php@7.3.*
* php@7.4.*
* php@8.*
1. Download `pcntl.so` from the appropriate subdirectory of this repo based on your php version
2. Move to extensions
* Move `pcntl.so` file to `/Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx`
3. Update INI
* Add `extension=pcntl.so` to your `php.ini`
* **Tip:** Use `php --ini` to locate the file.
### redis.so
*Current Versions*
* php@5.*
* php@7.1.*
* php@7.2.*
* php@7.3.*
* php@7.4.*
* php@8.*
#### php@^3.0.0
1. Mkdir `include/php` in php root
* Example: `/Applications/MAMP/bin/php/php5.5.10/include/php`.
2. Download php source file from php.net
* Example: If you want to compile extension for `php 5.4.42`, then download `php5.4.42.tar.gz`
3. Extract tar to the `include/php` directory.
4. Execute `./configure` in `include/php`.
5. `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.
6. Add `extension="redis.so"` to the end of `php.ini`
#### php@^4.0.0
0. You may need install `autoconf` via `brew install autoconf`.
1. `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.
2. Add `extension="redis.so"` to the end of `php.ini`
#### php@>=5.0.0
1. Download `pcntl.so` from the appropriate subdirectory of this repo based on your php version
2. Move to extensions
* Move `redis.so` file to `/Applications/MAMP/bin/php/phpX.Y.Z/lib/php/extensions/no-debug-non-zts-xxxxxxxx`
3. Update INI
* Add `extension=redis.so` to your `php.ini`
* **Tip:** Use `php --ini` to locate the file.
## Issues ##
If you find any issues feel free to open a request in [the Issues tab](https://github.com/jrquick17/php-extension-library/issues). If I have the time I will try to solve any issues but cannot make any guarantees. Feel free to contribute yourself.