2017 © Pedro Peláez
 

package fashion-partner

FashionPartner API client

image

afosto/fashion-partner

FashionPartner API client

  • Friday, June 1, 2018
  • by afosto
  • Repository
  • 0 Watchers
  • 0 Stars
  • 323 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 33 Versions
  • 23 % Grown

The README.md

FashionPartner API client

Use this client to convieniently interact with FashionPartner's SOAP API developed by DeNederlandse (DNL). This PHP package was developed by Afosto to make a reliable connection between Afosto (Retail Software) and FashionPartner and provides all the basic functionality., (*1)

Getting Started

Simply follow the installation instructions. You will need an account at DNL that is set up for you to use., (*2)

Prerequisites

What things you need to install the software and how to install them - PHP5.5+ - Composer (for installation) - PHP SOAP extension, (*3)

Installing

Installing is easy through Composer., (*4)

composer require afosto/fashion-parter

Now, to install a webhook (simple example) on your account, use the following code., (*5)

Set the configuration, (*6)

$config = [
    'wsdl'        => '',
    'user'        => '',
    'password'    => '',
    'companyCode' => '',
];

Iinit application, (*7)

App::init($config); 

Create a webhook model, (*8)

$webhook = new Afosto\FashionPartner\Models\Webhooks\Webhook();
$webhook->event = $webhook::HOOK_STOCK;
$webhook->name = 'TestWebhook';
$webhook->address = 'https://myapp.test/bucket.php';

Create the webhook, (*9)

if (!$webhook->push()) {
    print_r($webhook->errors); 
} else {
    echo $webhook->getWebhookId();
}

From now on you will receive stock updates at myapp.test/bucket.php. You can even use the integrated webhook bucket to translate the incomming XML into a useable object. Below you see bucket.php:, (*10)

$bucket = new \Afosto\FashionPartner\Helpers\Bucket();
$hook = $bucket->getStock();

Walk through the received updates, (*11)

foreach ($hook->list as $stock) {
    echo "New stock for {$stock->barcode} is {$stock->quantity}";
}

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository., (*12)

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details, (*13)

The Versions

01/06 2018

dev-master

9999999-dev https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/06 2018

1.5.4

1.5.4.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/06 2018

dev-hotfix/code-char

dev-hotfix/code-char https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

29/05 2018

1.5.3

1.5.3.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

29/05 2018

dev-hotfix/track-trace-customer-id

dev-hotfix/track-trace-customer-id https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

21/02 2018

1.5.2

1.5.2.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

21/02 2018

dev-hotfix/barcode-copy

dev-hotfix/barcode-copy https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

14/02 2018

1.5.1

1.5.1.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

05/02 2018

1.5.0

1.5.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

22/01 2018

1.4.0

1.4.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

22/01 2018

dev-feature/cancels

dev-feature/cancels https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

11/07 2017

1.3.11

1.3.11.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

04/07 2017

1.3.10

1.3.10.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

02/06 2017

1.3.9

1.3.9.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

02/06 2017

dev-feature/street1-max-lenght

dev-feature/street1-max-lenght https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/06 2017

1.3.8

1.3.8.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/06 2017

dev-feature/b2b-b2c

dev-feature/b2b-b2c https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

24/05 2017

1.3.7

1.3.7.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

24/05 2017

dev-feature/returns

dev-feature/returns https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

23/05 2017

1.3.6

1.3.6.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

05/05 2017

1.3.5

1.3.5.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/05 2017

1.3.4

1.3.4.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

01/05 2017

1.3.3

1.3.3.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

18/04 2017

1.3.2

1.3.2.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

05/04 2017

1.3.1

1.3.1.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

04/04 2017

1.3

1.3.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

04/04 2017

1.2.1

1.2.1.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

03/04 2017

1.2.0

1.2.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

28/03 2017

1.1.0

1.1.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

23/03 2017

1.0.0

1.0.0.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

23/03 2017

0.0.3

0.0.3.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

21/03 2017

0.0.2

0.0.2.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion

21/03 2017

0.0.1

0.0.1.0 https://afosto.com

FashionPartner API client

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

afosto partner de nederlandse fashion