PHP code example of maxwellmezadre / code-reader
1. Go to this page and download the library: Download maxwellmezadre/code-reader 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/ */
maxwellmezadre / code-reader example snippets
use MaxwellMezadre\CodeReader\CodeReaderFacade as CodeReader;
// Read all code values from an image
$codes = CodeReader::read('/path/to/your/image.png');
// Read all code types
$types = CodeReader::getTypes('/path/to/your/image.png');
// Get detailed information (value and type) for all codes
$details = CodeReader::getDetails('/path/to/your/image.png');
use MaxwellMezadre\CodeReader\CodeReader;
$reader = new CodeReader('/path/to/your/image.png');
// Get all code values
$codes = $reader->codes();
// Get all code types
$types = $reader->types();
// Get detailed information
$details = $reader->details(); // Returns a Code object or an array of Code objects.