PHPackages                             iq2i/prestashop-webservice - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. iq2i/prestashop-webservice

AbandonedArchivedLibrary[API Development](/categories/api)

iq2i/prestashop-webservice
==========================

A PHP library that let you interact with PrestaShop API

1231PHP

Since Jan 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/IQ2i/prestashop-webservice)[ Packagist](https://packagist.org/packages/iq2i/prestashop-webservice)[ RSS](/packages/iq2i-prestashop-webservice/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

PrestaShop API client
=====================

[](#prestashop-api-client)

[![Continuous Integration](https://github.com/IQ2i/prestashop-webservice/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/IQ2i/prestashop-webservice/actions/workflows/continuous-integration.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/098eed1256dd5ed1e80fe8f2f9e1b59a4bddfd23efc84f01be485b8aca7e591a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f495132692f70726573746173686f702d776562736572766963652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/IQ2i/prestashop-webservice/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/ee9a0d0c4a4b125f9fbe857a9046a092b79287173984a18f88a56dc224511f0a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f495132692f70726573746173686f702d776562736572766963652f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/IQ2i/prestashop-webservice/?branch=main)

A PHP client library to interact with PrestaShop API.

Installation
------------

[](#installation)

```
composer require iq2i/prestashop-webservice
```

Basic usage
-----------

[](#basic-usage)

1. Create a client instance:

```
use IQ2i\PrestashopWebservice\Http\Client;

$client = new Client([
    'url' => 'https://my-prestashop.com/api/',
    'key' => '6MBWZM37S6XCZXYT81GD6XD41SKZ14TP',
]);
```

2. Create a request:

```
use IQ2i\PrestashopWebservice\Http\Request\GetRequest;

/** GET /api/categories/1 */
$request = new GetRequest('categories', 1);
```

3. Execute request

```
$response = $client->execute($request);
```

4. Use client's response:

```
$statusCode = $response->getStatusCode();
$header = $response->getHeaders();
$content = $response->getContent();
```

The response's content is an array, client automatically decode XML.

A request for each action
-------------------------

[](#a-request-for-each-action)

```
use IQ2i\PrestashopWebservice\Http\QueryAttribute\Schema;
use IQ2i\PrestashopWebservice\Http\Request\SchemaRequest;

/** GET /api/categories?schema=synopsis */
$request = new SchemaRequest('categories');
$request->addQueryAttribute(new Schema(Schema::SYNOPSIS))
```

```
use IQ2i\PrestashopWebservice\Http\Request\ListRequest;

/** GET /api/categories */
$request = new ListRequest('categories');
```

```
use IQ2i\PrestashopWebservice\Http\Request\GetRequest;

/** GET /api/categories/1 */
$request = new GetRequest('categories', 1);
```

```
use IQ2i\PrestashopWebservice\Http\Request\CreateRequest;

/** POST /api/categories */
$request = new CreateRequest('categories');
$request->setBody('XML content');
```

```
use IQ2i\PrestashopWebservice\Http\Request\UpdateRequest;

/** PUT /api/categories/1 */
$request = new UpdateRequest('categories', 1);
$request->setBody('XML content');
```

```
use IQ2i\PrestashopWebservice\Http\Request\DeleteRequest;

/** DELETE /api/categories/1 */
$request = new DeleteRequest('categories', 1);
```

Use query attributes
--------------------

[](#use-query-attributes)

PrestaShop defines list options for webservice:

These options are available in this library:

```
use IQ2i\PrestashopWebservice\Http\QueryAttribute\Schema;

/** GET /api/categories?schema=synopsis */
$request = new SchemaRequest('categories');
$request->addQueryAttribute(new Schema(Schema::SYNOPSIS));
```

```
use IQ2i\PrestashopWebservice\Http\QueryAttribute\Filter;
use IQ2i\PrestashopWebservice\Http\QueryAttribute\Sort;

/** GET /api/categories?filter[name]=%[clothes]&sort=[name_ASC] */
$request = new ListRequest('categories');
$request->addQueryAttribute(new Filter('name', 'clothes', Filter::END));
$request->addQueryAttribute(new Sort('name', Sort::ASC));
```

Issues and feature requests
---------------------------

[](#issues-and-feature-requests)

Please report issues and request features at .

License
-------

[](#license)

This bundle is under the MIT license. For the whole copyright, see the [LICENSE](LICENSE) file distributed with this source code.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/911eee5cdea5a7a363c88e69d05e828b21e544ebdf573df9f887e72b2c6f0eb8?d=identicon)[LoicSapone](/maintainers/LoicSapone)

---

Top Contributors

[![loicsapone](https://avatars.githubusercontent.com/u/4466694?v=4)](https://github.com/loicsapone "loicsapone (40 commits)")

---

Tags

apilibraryphpprestashopwebservice

### Embed Badge

![Health badge](/badges/iq2i-prestashop-webservice/health.svg)

```
[![Health](https://phpackages.com/badges/iq2i-prestashop-webservice/health.svg)](https://phpackages.com/packages/iq2i-prestashop-webservice)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
