webgriffe / amp-magento-soap-client
此包已被废弃,不再维护。未建议替代包。
一个用于Amphp框架的异步Magento 1.x SOAP客户端
1.0.0
2018-02-24 10:37 UTC
Requires
- php: >=7
- amphp/amp: ^2.0
- amphp/react-adapter: ^1.1
- clue/soap-react: ^0.2.0
Requires (Dev)
- amphp/phpunit-util: ^1.0
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2022-10-19 09:47:09 UTC
README
⚠️ 该仓库未维护 ⚠️
这是一个由Amp和clue/soap-react客户端支持的异步Magento 1.x SOAP客户端。
安装
使用Composer require
composer require webgriffe/amp-magento-soap-client
使用/示例
<?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); });
许可证
此库受MIT许可证的约束。请参阅LICENSE文件中的完整许可证。
致谢
由Webgriffe®开发。