This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AddressSplitter { | |
/** | |
* Splits an address line in to array of street, houseNumber, houseNumberExtension and additionToAddress | |
* @param $address | |
* @return array | |
*/ | |
public static function splitAddress($address) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Picqer\Services\Curl; | |
use Throwable; | |
class CurlException extends \Exception | |
{ | |
protected $response = null; | |
protected $headers = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
</head> | |
<body class="purchaseorder-pdf"> | |
<div id="header"> | |
<div class="barcode barcode-purchaseorder"><img src="example.png"></div> | |
<div class="document-title">Purchase order {purchaseorderid}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
</head> | |
<body class="order-pdf"> | |
<div id="header"> | |
<div class="document-title">Order confirmation {orderid}</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Test server for Picqer external shipping provider | |
* Config endpoint: server-example.php?action=config-options | |
* Label endpoint: server-example.php?action=label | |
*/ | |
if (! isset($_GET['action']) || ! in_array($_GET['action'], ['config-options', 'label'])) { | |
echo 'action not understood'; |