Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shanliu/zxing_cpp

zxing-cpp wrappers for php extension
https://github.com/shanliu/zxing_cpp

php zxing zxing-cpp

Last synced: about 1 month ago
JSON representation

zxing-cpp wrappers for php extension

Awesome Lists containing this project

README

        

### zxing-cpp wrappers for php extension

> ZXing-C++,more detail see: https://github.com/nu-book/zxing-cpp

> support php >=7.0

> API doc: [zxing_cpp.php](./zxing_cpp.php)

> tutorial : [see examples](./examples)

> windows dll : [dll/php_zxing_cpp_php8.*.dll](./dll) `Tips:` Download according to the PHP version you use,only PHP > 8 and x64 has been compiled. other versions can be compiled according to the following documents

#### build for linux or mac

```shell
cd zxing_cpp # go to your `shanliu/zxing_cpp` src dir
git clone --progress -v --depth 1 https://github.com/nothings/stb stb-src
git clone --progress -v --depth 1 https://github.com/nu-book/zxing-cpp zxing-cpp-src
cd zxing-cpp-src && cmake . && make && make install && cd .. # Maybe you set prefix??
phpize && ./configure --with-stb-dir=stb-src # ./configure --help see more config
make && make install
```

#### build for windows

> load build env and build

```
open [x64|x86] Native Tools Command Prompt for VS 2019 build env #need use >=vs2019
load PHP build env \your-php-sdk-binary-tools-dir\bin\phpsdk_setvars.bat
```

```cmd
cd zxing_cpp #download `shanliu/zxing_cpp` to ext/zxing_cpp and go to the zxing_cpp dir
win_dep.cmd #download lib
cd your_php_src # go to your php src dir
buildconf.bat
configure --disable-all --enable-cli --enable-zxing_cpp=shared
nmake
```