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

AbandonedArchivedLibrary[API Development](/categories/api)

cpliakas/magento-client-php
===========================

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

0.1.1(12y ago)5565.0k↓50%23[9 issues](https://github.com/cpliakas/magento-client-php/issues)MITPHPPHP &gt;=5.3.3

Since Feb 20Pushed 12y ago5 watchersCompare

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

READMEChangelogDependencies (8)Versions (3)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

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4471d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/037ad5b988519fe019d4d20758d45d70ba67d7b3aa7badca6a0f4bfedb882754?d=identicon)[cpliakas](/maintainers/cpliakas)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4495.9M38](/packages/rackspace-php-opencloud)[cdaguerre/php-trello-api

Trello API v2 client

255666.7k3](/packages/cdaguerre-php-trello-api)[dchesterton/marketo-rest-api

A PHP client for the Marketo.com REST API

41844.1k1](/packages/dchesterton-marketo-rest-api)[carlosio/geckoboard

A PHP library for dealing with Geckoboard API (http://www.geckoboard.com)

40172.2k](/packages/carlosio-geckoboard)[teepluss/api

Laravel 4 Internal Request (HMVC)

7034.0k](/packages/teepluss-api)[jlinn/mandrill-api-php

A PHP client library for Mandrill's REST API

24117.4k](/packages/jlinn-mandrill-api-php)

PHPackages © 2026

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