1. Go to this page and download the library: Download ayeo/gs1 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/ */
ayeo / gs1 example snippets
class MyCustomCompany implements CompanyInterface
{
public function getGcp()
{
return new Model\Gcp('123456');
}
public function getName()
{
return "My Custom Name";
}
public function getLocation()
{
$location = new MyCustomLocation();
}
}
class MyCustomLocation implements LocationInterface
{
public function getAddress()
{
$address = new Model\Address;
$address->streetName = 'Secret Avenue';
$address->buildingNumber = 10;
$address->countryName = "England";
$address->postcode = 'NG10 5GH';
}
public function getLocationNumber()
{
return '00';
}
public function getTelephoneNumber()
{
return '560 560 506';
}
public function getFaxNumber()
{
return '';
}
public function getWebsiteAddress()
{
return 'ayeo.pl';
}
}