PHPackages                             frost18/magento-client-php - 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. frost18/magento-client-php

ActiveLibrary[API Development](/categories/api)

frost18/magento-client-php
==========================

A PHP client library that consumes Magento's REST and XMLRPC APIs

1.0(5y ago)015MITPHPPHP &gt;=5.3.3

Since Feb 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/frost18/magento-client-php)[ Packagist](https://packagist.org/packages/frost18/magento-client-php)[ Docs](https://github.com/frost18/magento-client-php)[ RSS](/packages/frost18-magento-client-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

Magento Client Library For PHP
==============================

[](#magento-client-library-for-php)

[![Build Status](https://camo.githubusercontent.com/137aa97415b2720bf4f25151eb7c94112c297c068343453728ad54c4b7cfc591/68747470733a2f2f7472617669732d63692e6f72672f63706c69616b61732f6d6167656e746f2d636c69656e742d7068702e706e67)](https://travis-ci.org/cpliakas/magento-client-php)[![Coverage Status](https://camo.githubusercontent.com/710bac9ae4a28b4cb0a508fd3eaa6dc68cf96841cbc553bd284e9180b616798e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f63706c69616b61732f6d6167656e746f2d636c69656e742d7068702f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/cpliakas/magento-client-php?branch=master)[![Total Downloads](https://camo.githubusercontent.com/86ffd68e9f290a507be3cca14796ae9bad0abd63c31fe0e959fdaa205c531595/68747470733a2f2f706f7365722e707567782e6f72672f63706c69616b61732f6d6167656e746f2d636c69656e742d7068702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/cpliakas/magento-client-php)[![Latest Stable Version](https://camo.githubusercontent.com/a28b8f16ffa0a8d82072aebf44d7a4ff4555d121c6388be020b0e5825186112a/68747470733a2f2f706f7365722e707567782e6f72672f63706c69616b61732f6d6167656e746f2d636c69656e742d7068702f762f737461626c652e706e67)](https://packagist.org/packages/cpliakas/magento-client-php)

Provides a client library to make REST and XMLRPC calls to a Magento instance.

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

[](#installation)

Magento Client Library For PHP can be installed with [Composer](http://getcomposer.org)by adding it as a dependency to your project's composer.json file.

```
{
    "require": {
        "cpliakas/magento-client-php": "*"
    }
}
```

After running `php composer.phar update` on the command line, include the autoloader in your PHP scripts so that the SDK classes are made available.

```
require_once 'vendor/autoload.php';
```

Please refer to [Composer's documentation](https://github.com/composer/composer/blob/master/doc/00-intro.md#introduction)for more detailed installation and usage instructions.

Usage
-----

[](#usage)

### XMLRPC

[](#xmlrpc)

The following example returns a list of products with SKUs that start with "123":

```
use Magento\Client\Xmlrpc\MagentoXmlrpcClient;

$client = MagentoXmlrpcClient::factory(array(
    'base_url' => 'http://magentohost',
    'api_user' => 'api.user',
    'api_key'  => 'some.private.key',
));

$filters = array(
    'sku' => array('like' => '123%'),
);

$result = $client->call('catalog_product.list', array($filters));
```

### Rest

[](#rest)

The following example returns a list of products:

```
use Magento\Client\Rest\MagentoRestClient;

$client = MagentoRestClient::factory(array(
    'base_url'        => 'http://magentohost',
    'consumer_key'    => 'abc123...',
    'consumer_secret' => 'def456...',
    'token'           => 'ghi789...',
    'token_secret'    => 'jkl012...',
));

$result = $client->get('/api/rest/products')->send()->json();
```

Refer to [Guzzle's documentation](https://guzzle.readthedocs.org/en/latest/http-client/request.html#creating-requests-with-a-client)for more information on sending requests to the server.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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.

###  Release Activity

Cadence

Every ~1147 days

Total

3

Last Release

2173d ago

Major Versions

0.1.1 → 1.02020-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e06b96d8339ff12e5359265ace91120cfd538e53e2fa22dc146b452d497c885?d=identicon)[frost18](/maintainers/frost18)

---

Top Contributors

[![frost18](https://avatars.githubusercontent.com/u/3023675?v=4)](https://github.com/frost18 "frost18 (4 commits)")[![cpliakas](https://avatars.githubusercontent.com/u/482722?v=4)](https://github.com/cpliakas "cpliakas (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frost18-magento-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/frost18-magento-client-php/health.svg)](https://phpackages.com/packages/frost18-magento-client-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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