https://github.com/alexschwarz89/icecatxml
An easy to use library to access Icecat XML product data
https://github.com/alexschwarz89/icecatxml
api-sdk ecommerce icecat pim product
Last synced: about 2 months ago
JSON representation
An easy to use library to access Icecat XML product data
- Host: GitHub
- URL: https://github.com/alexschwarz89/icecatxml
- Owner: alexschwarz89
- License: mit
- Created: 2015-12-15T16:33:25.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T20:23:19.000Z (almost 9 years ago)
- Last Synced: 2025-06-06T22:16:07.549Z (9 months ago)
- Topics: api-sdk, ecommerce, icecat, pim, product
- Language: PHP
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://insight.sensiolabs.com/projects/bdc4649b-7a9c-42ab-9e23-ac49f683af00)
[](https://codeclimate.com/github/alexschwarz89/icecatxml)
icecatxml
============
An easy-to-use Wrapper for the Ieceat API to access product data provided by Icecat.
It should be compatible from PHP 5.5+
## Install
Install via [composer](https://getcomposer.org):
```javascript
{
"require": {
"alexschwarz89/icecatxml"
}
}
```
Run `composer install`.
## Example usage
#### Get product data with EAN/UPC
```php
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByEAN('EAN');
```
#### Get product data by vendor name and MPN
```php
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleByMPN('ExampleVendor', 'AA12345');
```
#### Get product data by Icecat ID
```php
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleById('27260205');
```
### Specifying the language (optional)
The default langauge is "DE", to change this, set the optional parameter $lang, e.g.
```php
use Alexschwarz89\IcecatXML\Api;
$icecat = new Api('ACCOUNT_USERNAME', 'ACCOUNT_PASSWORD');
$xml = $icecat->getArticleById('27260205', 'US');
```