PHP code example of celsonery / php-ean-utils
1. Go to this page and download the library: Download celsonery/php-ean-utils 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/ */
celsonery / php-ean-utils example snippets
use CelsoNery\EanUtils\Services\Traits\EanUtil;
class YourClassName
{
use EanUtil;
public function yourMethod()
{
if ($this->isValid("7898114289779")) {
// Do something
}
}
}
bash
"celsonery/php-ean-utils": "^1.3"