https://github.com/dk-sirk/phpredis-windows-build-tools
Easy build PhpRedis binary DLL for windows.
https://github.com/dk-sirk/phpredis-windows-build-tools
build complie php phpredis tools
Last synced: about 1 month ago
JSON representation
Easy build PhpRedis binary DLL for windows.
- Host: GitHub
- URL: https://github.com/dk-sirk/phpredis-windows-build-tools
- Owner: dk-sirk
- License: mit
- Created: 2023-11-27T03:40:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-28T03:45:40.000Z (7 months ago)
- Last Synced: 2025-08-28T10:38:26.014Z (7 months ago)
- Topics: build, complie, php, phpredis, tools
- Language: Batchfile
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# PhpRedis Windows Build Tools
Easy build PhpRedis binary DLL for windows.
Links:
- [PHP for Windows](https://windows.php.net)
- [PhpRedis](https://github.com/phpredis/phpredis)
- [PHP SDK Binary Tools](https://github.com/php/php-sdk-binary-tools)
- [PhpRedis on PECL](https://pecl.php.net/package/redis)
# Download
- Visual Studio ( https://visualstudio.microsoft.com/downloads ) Download Community Edition
- PHP SDK ( https://github.com/php/php-sdk-binary-tools ) Download source code ZIP
- PHP Source ( https://windows.php.net/download ) Download source code ZIP and Development package
- PhpRedis Source ( https://github.com/phpredis/phpredis ) Download source code ZIP
# Prepare
- Run Visual Studio Setup, select `MSVC v142 VS2019 C++ x64/x86 build tools` or high version, select `Windows 11 SDK (10.0.22621.0)` or high version, complete the installation according to the wizard.
- Extract this tools to a empty folder, e.g., `c:\build` alias `{build}`
- Extract SDKs and sources to specified folder, excluding the first level directory if exist:
- PHP SDK -> `{build}\php-sdk`
- PHP Source -> `{build}\php-src`
- PHP Development package -> `{build}\php-devel-pack`
- PhpRedis Source -> `{build}\php-src\ext\redis`
- **Edit `{build}\_config.bat` !!!** Specify the correct parameters: VC_TOOLS_PATH, WIN_SDK_PATH, WIN_SDK_VERSION, PHP_NTS
# Run
Open CMD console, cd `{build}`, run
`init.bat`
if no error accured, run
`build.bat`
# Output
`php_redis_nts.dll` or `php_redis_ts.dll` you will find in `{build}\release`.
# Remark
- Support x64 only.