shanliu / simhash
simhash for php extension
dev-master
2022-04-08 13:46 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-04-08 18:07:05 UTC
README
PHP扩展方式实现,支持 php>=7.0
php-src 为PHP方式实现 默认用php方式,编译扩展后使用扩展
使用示例 test.php
linux or mac 下编译
cd simhash phpize && ./configure make && make install
windows 下编译
load build env
打开 [x64|x86] Native Tools Command Prompt for VS 2017 编译命令行
加载PHP编译变量 \your-php-sdk-binary-tools-dir\bin\phpsdk_setvars.bat
cd your_php_src # PHP 源码目录 下载 simhash 源码到 ext/simhash 下
buildconf.bat
configure --disable-all --enable-cli --enable-simhash=shared
nmake