PHP code example of shu-global / slip-verification
1. Go to this page and download the library: Download shu-global/slip-verification library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shu-global / slip-verification example snippets
Route::post('slip', function (Request $request) {
$slipFile = $request->file("file");
$result = new MiniQR(QRCodeReader::qrcode2text($slipFile));
return response([
"result"=> $result
], 200);
});