Coder Social home page Coder Social logo

php-qr-decoder-api's Introduction

#php qr decoder api

本项目可以帮你快速搭建一个基于 PHP 的二维码解析接口api,并且不需要安装其他扩展。核心库lib是在码云里找的

#如何使用

##说明

直接把整个包放入到工程文件内即可

##运行 ####环境

PHP >= 5.3
php.ini里面开启: extension=php_exif.dll

####参数 接收 get 或者 post 参数

  • imgurl String

返回值示例

{"status":1, "msg":"解析成功", "qrtext":"解析结果"}

如果没有传入参数, status则为0。只有解析成功了才会返回 qrtext

####使用 get方式则访问 http://localhost/index.php?imgurl=url

####其他 只引入核心库lib的使用方法

include_once('./lib/QrReader.php');
$qrcode = new QrReader('path/to_image');  //图片路径
$text = $qrcode->text(); //返回识别后的文本

php-qr-decoder-api's People

Contributors

terrencefong avatar

Watchers

James Cloos avatar nicai007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.