Skip to content

Instantly share code, notes, and snippets.

<?php // php 7; declare(strict_types=1);
/**
* For Dutch consignments the street should be divided into name, number and addition.
*
* If you want to improve this regex, please check the test.
* And also adapt these adjustments to our GitHub:
* https://github.com/myparcelnl/sdk
*
* @author Reindert Vetter <[email protected]>
* @copyright MyParcel
const WEEKDAY_MONDAY = 1;
/**
* Get drop off date
*
* @param int $dateTime
* @return int
*/
public function getDropOffDateTimeFromDeliveryDateTime($dateTime)
{
{
"id": "1",
"billing_address": {
"name": ""
"street": ""
},
"created_at": "2021-01-01 12:00:00",
"custom_fields": null,
"customer": [
"email": "[email protected]",

⌘+1

Navigate in project directories image Tool Windows | Project image

⌘+2

Navigate to method image Main Menu | Navigate | File Structure

@reindert-vetter
reindert-vetter / retention-response.json
Last active July 20, 2022 11:56
Retention response /v2/statistics/retention?from=2020-01&until=2020-04
[
{
"cohort": "2020-01",
"after": 0,
"count": 100,
"rate": "100.0",
"mutation_rate": null
},
{
"cohort": "2020-01",

Introduction

This is a PHP SDK to make easier to communicate with the Plug&Pay API.

Not all functionalities are present. If you're missing something, feel free to request it through our Discord channel.

Requirements

  • The Plug&Pay SDK works with PHP version >= 7.4.

Introduction

For how to handle the exceptions correctly, see Exceptions.

Show

To load more information see Extra Information.

use \PlugAndPay\Sdk\Service\Client;
use \PlugAndPay\Sdk\Service\OrderService;