michalper / magento_api_client
Unofficial Magento REST API Client
0.1
2017-01-25 11:36 UTC
Requires
- php: >=7.0
- itav/serializer: ^1.2
- michalper/tools: ^0.1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-25 11:42:42 UTC
README
Unofficial PHP client for the Magento 1 REST API (OAuth 1.0a).
Install
composer require michalper/magento_api_client
Usage
$client = new MagentoClient(); $client->setUrl('https://your-store.com') ->setCustomerKey('...') ->setCustomerSecret('...') ->setOauthToken('...') ->setOauthSecret('...'); $customer = $client->customers->get(123); $order = $client->orders->get(456);
customers and orders both expose get($id) and search(ParamsModel $params), returning typed CustomerModel/OrderModel objects deserialized from the API response.
License
GNU GPL