PHPackages                             dsilva94/magento-client-v2 - 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. dsilva94/magento-client-v2

ActiveLibrary[API Development](/categories/api)

dsilva94/magento-client-v2
==========================

Magento API Client (SOAP v1). Allows wrappers for each call, dependency injections and code completion.

v1.0.6(9y ago)048MITPHPPHP &gt;=5.3.0

Since Apr 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/DiegoSilva94/magento-client-v2)[ Packagist](https://packagist.org/packages/dsilva94/magento-client-v2)[ RSS](/packages/dsilva94-magento-client-v2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Magento API Client
==================

[](#magento-api-client)

This library implements the [Magento](http://www.magentocommerce.com/) SOAP v1 (standard) API.

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/32fa6371e56ed95696eeba5210abd94e5cca74438129cf480735f2ef3565f4d8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736d616c6f742f6d6167656e746f2d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f733d63393566393937663136373037616636393636646335366638326163323336313737386333623461)](https://scrutinizer-ci.com/g/smalot/magento-client/)[![Total Downloads](https://camo.githubusercontent.com/63b5767b6802cce04cb9c58171c1f5500fea068afc14c083b06802f3e5cf3988/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d636c69656e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/smalot/magento-client)[![Current Version](https://camo.githubusercontent.com/ab64d4b9d96fca14768055dc81f93229d33c6f5126efff56496c549ae180c7d8/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/smalot/magento-client)[![License](https://camo.githubusercontent.com/58a4de7381ca3ef1b3a81c5b1a6c6b5b16593e7080c54db3036b547fcf07429e/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d636c69656e742f6c6963656e73652e706e67)](https://packagist.org/packages/smalot/magento-client)

Features:

- allows wrappers
- allows dependencies injections
- allows code completion
- auto-updated via [composer](http://www.getcomposer.org) packaging ([packagist.org](http://www.packagist.org))

**Note:** This library is not related to [Magento Company](http://magento.com/).

Documentation
=============

[](#documentation)

This API is designed on top of [Magento SOAP API V1](http://www.magentocommerce.com/api/soap/introduction.html).

Supported modules are :

- Mage\_Catalog
- Mage\_CatalogInventory
- Mage\_Checkout
- Mage\_Customer
- Mage\_Directory
- Mage\_Sales
- Enterprise\_CustomerBalance
- Enterprise\_CustomerGiftCard
- Mage\_GiftMessage
- Mage\_Core
- Store View

Module's names has been standardized to be more clean :

- Catalog
- CatalogInventory
- Cart
- Customer
- Directory
- Order
- CustomerBalance
- GiftCard
- GiftMessage
- Core
- Store

**Note :** `login` and `logout` calls are made only if needed.

Installation
============

[](#installation)

Download using [composer](http://getcomposer.org/):

```
{
    "require": {
        "smalot/magento-client": "*"
    }
}
```

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

```
$ php composer.phar update smalot/magento-client
```

Composer will install the bundle to your project's `vendor/smalot` directory and `create`/`update` an autoload file.

License
=======

[](#license)

This library is provided under MIT license (since v0.5.0 release). See the complete license :

```
LICENSE

```

Implementation
==============

[](#implementation)

Each `module manager`, which heritate from `MagentoModuleAbstract`, will generate an `action`.

Actions can be either directly executed or added to a `queue`.

If it is directly executed, it will generate a `single call`, if not, that's a `multi call`.

Single Call
-----------

[](#single-call)

Here is a sample code to load tree of categories of the `default` website in a single call.

```
