php-zxing icon indicating copy to clipboard operation
php-zxing copied to clipboard

How to add library into Laravel project

Open sarzali07 opened this issue 6 years ago • 4 comments

Hi

I have install dsiddharth2/php-zxing into laravel project.

After that I write sample code

<?php
    use PHPZxing\PHPZxingDecoder;

$decoder        = new PHPZxingDecoder();
$data           = $decoder->decode('https://internationalbarcodes.com/wp-content/uploads/sites/95/2013/09/07-EAN-13-Standard-1.jpg');
if($data instanceof PHPZxing\ZxingImage) {
print_r($data);
}
?>

and it give error File/Folder does not exist.

I think I miss this step

{  
    "require": {
        "dsiddharth2/php-zxing": "1.0.1"
    }  
}

Where I have to add above line in laravel project.

sarzali07 avatar Feb 20 '19 07:02 sarzali07

I have the exact same problem, but i also use "dsiddharth2/php-zxing": "1.0.1", did you ever found the solution?

TOIVI291 avatar Mar 20 '19 13:03 TOIVI291

No still finding same solution for problem

Sent from my iPhone

On 20-Mar-2019, at 6:56 PM, TOIVI291 <[email protected]mailto:[email protected]> wrote:

I have the exact same problem, but i also use "dsiddharth2/php-zxing": "1.0.1", did you ever found the solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/dsiddharth2/php-zxing/issues/8#issuecomment-474839904, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKPeeQrwusJcDYLTioPUdc24u6xZJfzkks5vYj3ygaJpZM4bEkHN.

sarzali07 avatar Mar 21 '19 09:03 sarzali07

Sorry for late reply,

Did you guys find the solution ?

dsiddharth2 avatar May 03 '19 06:05 dsiddharth2

I think it the library does not support linking external image paths. I will try and let you know. I have experimented on local paths on the machine.

dsiddharth2 avatar May 19 '19 14:05 dsiddharth2