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(6y ago)015MITPHPPHP &gt;=5.3.3

Since Feb 20Pushed 6y 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 yesterday

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 41% 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

2219d ago

Major Versions

0.1.1 → 1.02020-06-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3023675?v=4)[frost18](/maintainers/frost18)[@frost18](https://github.com/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

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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