PHP code example of lucasnpinheiro / ean
1. Go to this page and download the library: Download lucasnpinheiro/ean 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/ */
lucasnpinheiro / ean example snippets
declare(strict_types=1);
use Lucasnpinheiro\Ean\EanExtractor;
r($eanExists->toArray());
print_r($eanExists->toObject());
Array
(
[ean_code] => 2018740009892
[scale_product] =>
[international_number] =>
[custom_code_999] =>
[custom_code_2] => 1
[code] => 01874
[value] => 000989
)
stdClass Object
(
[ean_code] => 2018740009892
[scale_product] =>
[international_number] =>
[custom_code_999] =>
[custom_code_2] => 1
[code] => 01874
[value] => 000989
)