Would you like to create PHP apps easily? You’d like to use a nice framework that makes the full REST communication on its own? To support you with that, we made the first steps towards a basic PHP framework.
Installation
- Check for the latest release.
- Download the latest version of the available .phar file and copy it to a folder within your PHP project, e.g. /libraries.
- To use the client you need to require it with:
require_once(PathToPharFile)
- Then set the variables for
$HOST
,$SHOP
,$AUTHTOKEN
and$ISSSL
.
Usage
Create a shop endpoint:
$shop = new ep6\Shop($HOST, $SHOP, $AUTHTOKEN, $ISSSL);
Just use it.
$productFilter = new ep6\ProductFilter();
$productFilter->setLocale("de_DE");
$productFilter->setCurrency("EUR");
$productFilter->setSort("name");
$productFilter->setResultsPerPage(100);
$products = $productFilter->getProducts();
Examples
Check our GitHub repository for all examples currently available.