2017 © Pedro Peláez
 

library php-zalando

A PHP library for the Zalando API

image

cschalenborgh/php-zalando

A PHP library for the Zalando API

  • Wednesday, April 12, 2017
  • by cschalenborgh
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,194 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Zalando PHP API Wrapper

Build Status Coverage Status Total Downloads License, (*1)

Installation

Composer

Add php-zalando in your composer.json or create a new composer.json:, (*2)

{
    "require": {
        "cschalenborgh/php-zalando": "dev-master"
    }
}

Now tell composer to download the library by running the command:, (*3)

bash $ php composer.phar install, (*4)

Composer will generate the autoloader file automatically. So you only have to include this. Typically its located in the vendor dir and its called autoload.php, (*5)

Basic Usage:

This library is using the PSR-0 standard: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md So you can use any autoloader which fits into this standard., (*6)

API Docs:

https://github.com/zalando/shop-api-documentation/wiki/, (*7)

API Demo:

http://zalando.github.io/shop-api-demo/, (*8)

Supported API methods:

  • https://api.zalando.com/article-reviews
  • https://api.zalando.com/article-reviews/{reviewId}
  • https://api.zalando.com/article-reviews-summaries
  • https://api.zalando.com/article-reviews-summaries/{articleModelId}
  • https://api.zalando.com/articles
  • https://api.zalando.com/articles/{articleId}
  • https://api.zalando.com/articles/{articleId}/media
  • https://api.zalando.com/articles/{articleId}/reviews
  • https://api.zalando.com/articles/{articleId}/reviews-summary
  • https://api.zalando.com/articles/{articleId}/units
  • https://api.zalando.com/articles/{articleId}/units/{unitId}
  • https://api.zalando.com/brands
  • https://api.zalando.com/brands/{key}
  • https://api.zalando.com/categories
  • https://api.zalando.com/categories/{key}
  • https://api.zalando.com/domains
  • https://api.zalando.com/facets?{filters}
  • https://api.zalando.com/filters
  • https://api.zalando.com/filters/{name}
  • https://api.zalando.com/recommendations/{articleIds}

Multiple filter values

Since Zalando uses multiple filter values like this: https://api.zalando.com/articles?brandFamily=nike&color=white&color=red&page=1&pageSize=2, (*9)

We've chosen to accept comma seperated values for the filter setting. For example: $articles->setColor('white,red');, (*10)

Feel free to contribute., (*11)

The Versions

12/04 2017

dev-feature/remove-reviews

dev-feature/remove-reviews https://github.com/cschalenborgh/php-zalando

A PHP library for the Zalando API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api zalando

26/08 2016

dev-master

9999999-dev https://github.com/cschalenborgh/php-zalando

A PHP library for the Zalando API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api zalando

26/08 2016

v1.2

1.2.0.0 https://github.com/cschalenborgh/php-zalando

A PHP library for the Zalando API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api zalando

18/11 2015

1.1

1.1.0.0 https://github.com/cschalenborgh/php-zalando

A PHP library for the Zalando API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api zalando

27/10 2015

v1.0

1.0.0.0 https://github.com/cschalenborgh/php-zalando

A PHP library for the Zalando API

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api zalando