webgriffe/amp-magento-soap-client

This package is abandoned and no longer maintained. No replacement package was suggested.

An async Magento 1.x SOAP client to be used with Amphp framework

1.0.0 2018-02-24 10:37 UTC

This package is auto-updated.

Last update: 2022-10-19 09:47:09 UTC


README

⚠️ This repo is unmaintained ⚠️

Build Status

This is an asyncronous Magento 1.x SOAP client powered by Amp and clue/soap-react client.

Installation

Use Composer require:

composer require webgriffe/amp-magento-soap-client

Usage / Example

<?php

require_once 'vendor/autoload.php';

\Amp\Loop::run(function () {
    /** @var \Webgriffe\AmpMagentoSoapClient\Client $client */
    $client = yield (new \Webgriffe\AmpMagentoSoapClient\Factory(
        'http://magento.host/api/soap/?wsdl',
        'username',
        'password',
        '8.8.8.8' // Optional nameserver IP
    ))->create();

    yield $client->login();
    $result = yield $client->call('catalog_product.list', []);
    var_dump($result);
});

License

This library is under the MIT license. See the complete license in the LICENSE file.

Credits

Developed by Webgriffe®.