PHP code example of nohn / analogmeterreader

1. Go to this page and download the library: Download nohn/analogmeterreader 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/ */

    

nohn / analogmeterreader example snippets


use nohn\AnalogMeterReader\AnalogMeter;

$amr = new AnalogMeter($imagick_object, 'r');
echo $amr->getValue();

use nohn\AnalogMeterReader\AnalogMeter;

$amr = new AnalogMeter($path_to_image_file, 'r');
echo $amr->getValue();