PHPackages                             smalot/magento-bundle - 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. smalot/magento-bundle

ActiveLibrary[API Development](/categories/api)

smalot/magento-bundle
=====================

A Symfony2 wrapper for the Magento Soap Client API

v0.4(9y ago)95.5k8MITPHPPHP &gt;=5.3.0

Since May 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/smalot/magento-bundle)[ Packagist](https://packagist.org/packages/smalot/magento-bundle)[ RSS](/packages/smalot-magento-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

MagentoBundle
=============

[](#magentobundle)

This project is a bridge between Symfony 2 and Magento-Client API which allow to call easily the Magento Soap v1 API.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8f05b5bbde60a2369d217767aa2c07a912121e7dc3bc4fb92703cbd7fd91f3a6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736d616c6f742f6d6167656e746f2d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d61663534623064666337303265323030353931306530393731613366356530666632616137346536)](https://scrutinizer-ci.com/g/smalot/magento-bundle/)[![Total Downloads](https://camo.githubusercontent.com/d349615e89513f6623175e0eaaabf1d9f405754a6f7fff965c07224d26d2a72e/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/smalot/magento-bundle)[![Current Version](https://camo.githubusercontent.com/616fd741fcc64bd31f6ecde4ef8587be2428fe9f000a9979fecc2e9722ea7319/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/smalot/magento-bundle)[![License](https://camo.githubusercontent.com/e9abda2d500e75e01d1200117b9ea376cb1bce4de18469738a1886322f99457b/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f6d6167656e746f2d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/smalot/magento-bundle)

Allows :

- wrappers for each call
- dependencies injections
- event listeners
- debug toolbar integration
- and ... code completion

Requirements
============

[](#requirements)

- Symfony &gt;= 2.1
- PHP &gt;= 5.3
- smalot/magento-client

Installation
============

[](#installation)

Add the following lines to your composer.json:

```
{
    "require": {
        "smalot/magento-bundle": "*"
    }
}
```

And run `php composer.phar update smalot/magento-bundle`

Then, register the bundle in your kernel:

```
# app/AppKernel.php

# ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            # ...
            new Smalot\MagentoBundle\MagentoBundle(),
        );

        return $bundles;
    }
}
```

Configuration
-------------

[](#configuration)

You need to setup at least one connection in the `connections` pool and specify it with the `default_connection` property. The mandatory properties are: `url`, `api_user` and `api_key`.

```
# app/config/config.yml

# Sample configuration
magento:
    # Refers to the default connection in the connection pool
    default_connection:   default # Example: default

    # List all available connections
    connections:

        # Prototype
        default:
            url:                  http://domain.tld/magento/
            api_user:             username
            api_key:              0123456789AZ

            # Enable logging system
            logging:              %kernel.debug%

            # Refers to the logger service
            logger:               ~

            # Refers to the dispatcher service
            dispatcher:           ~
```

Details
-------

[](#details)

Service(s) provided:

- magento

Events thrown in security context:

- \\Smalot\\MagentoBundle\\MagentoEvents::PRE\_LOGIN
- \\Smalot\\MagentoBundle\\MagentoEvents::POST\_LOGIN
- \\Smalot\\MagentoBundle\\MagentoEvents::PRE\_LOGOUT
- \\Smalot\\MagentoBundle\\MagentoEvents::POST\_LOGOUT

Events thrown in transport context:

- \\Smalot\\MagentoBundle\\MagentoEvents::PRE\_SINGLE\_CALL
- \\Smalot\\MagentoBundle\\MagentoEvents::POST\_SINGLE\_CALL
- \\Smalot\\MagentoBundle\\MagentoEvents::PRE\_MULTI\_CALL
- \\Smalot\\MagentoBundle\\MagentoEvents::POST\_MULTI\_CALL

Sample codes
------------

[](#sample-codes)

Using the `default` connection:

```
class MagentoController extends Controller
{
    /**
     * @Route("/", name="magento_index")
     */
    public function indexAction(Request $request)
    {
        // Retrieve default connection.
        $magento = $this->get('magento')->getManager();

        if ($magento->ping()) {
            // Call any module's class.
            $categoryManager = new \Smalot\Magento\Catalog\Category($magento);
            $tree            = $categoryManager->getTree()->execute();
        } else {
            $tree = array();
        }

        $magento->logout();

        return new Response('' . var_export($tree, true) . '');
    }
}
```

The connection can be specified manually if needed:

```
$magento = $this->get('magento')->getManager('second_connection_name');
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~311 days

Total

4

Last Release

3457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8229439a3d4f53cefbdae10395a2d6f2dea8906c239e87ce840bd459d1ba187?d=identicon)[smalot](/maintainers/smalot)

---

Top Contributors

[![smalot](https://avatars.githubusercontent.com/u/1424035?v=4)](https://github.com/smalot "smalot (8 commits)")[![stevenbrookes](https://avatars.githubusercontent.com/u/43211757?v=4)](https://github.com/stevenbrookes "stevenbrookes (4 commits)")[![mmenozzi](https://avatars.githubusercontent.com/u/1199914?v=4)](https://github.com/mmenozzi "mmenozzi (1 commits)")

### Embed Badge

![Health badge](/badges/smalot-magento-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/smalot-magento-bundle/health.svg)](https://phpackages.com/packages/smalot-magento-bundle)
```

PHPackages © 2026

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