Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shanliu/zxing_cpp
- Owner: shanliu
- License: other
- Created: 2022-04-03T04:08:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T13:54:21.000Z (over 2 years ago)
- Last Synced: 2024-04-16T06:43:12.612Z (9 months ago)
- Topics: php, zxing, zxing-cpp
- Language: C
- Homepage:
- Size: 1.56 MB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```