PHP test project which generate a html label
PHP 7.3 or higher
Composer 2 for installation
composer require "tripsy1234/pctest"
require('vendor/autoload.php');
use Gabriel\PcTest\Src\Label;
//generate label output
$label = new Label($data);
if ($errors = $label->getError()) {
echo implode('<br />', $errors);
} else {
echo $label->print();
}
Run phpUnit tests using following command: $ vendor\bin\phpunit test
Sample data:
```
$data = [
'first_name' => 'David',
'last_name' => 'Gabriel',
'company_name' => 'Test',
'address_1' => 'Str Zorelelor',
'address_2' => 'Nr 1',
'city' => 'Craiova',
'county' => 'Dolj',
'country' => 'Romania',
'zip_code' => '12345',
'phone' => '07000111222',
'email' => 'engine@test.ro',
];
```