cschalenborgh/php-zalando

A PHP library for the Zalando API

v1.2 2016-08-26 09:43 UTC

This package is auto-updated.

Last update: 2024-02-29 02:58:30 UTC


README

Build Status Coverage Status Total Downloads License

Installation

Composer

Add php-zalando in your composer.json or create a new composer.json:

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

Now tell composer to download the library by running the command:

$ php composer.phar install

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

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.

API Docs:

https://github.com/zalando/shop-api-documentation/wiki/

API Demo:

http://zalando.github.io/shop-api-demo/

Supported API methods:

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

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

Feel free to contribute.