This package is abandoned and no longer maintained. The author suggests using the https://github.com/yireo/Yireo_Mpi package instead.

Adds a collector API to Magento for use with Yireo Magento Performance Insights service

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0


0.2.7 2017-08-15 14:53 UTC

This package is auto-updated.

Last update: 2019-02-20 19:50:32 UTC


This repository contains the sources for a Magento 1 extension, that adds an API to Magento, used by the Magento Performance Insights (MPI) service developed by Yireo. https://www.yireo.com/services/magento-services/magento-performance-insights

About the Magento Performance Insights service

The Yireo MPI service allows you to quickly gather numerous metrics from your Magento shop and its hosting environment. With an active MPI subscription, these data are then collected and stored on a private Yireo server. Next, the data are interpreted and presented to you visually on the Yireo site. In the end, you get an overview of performance settings, specific to your environment, and custom personal advice on how to optimize things to the max.


Access to the API is only allowed when a specific secret is added to the URL calls. The secret must be of a length of 10 characters or more, and can be configured in the Magento System Configuration in the section Yireo MPI. After the secret is set, the URLs need to get the additional secret as follows:


Access to the API

There are 2 ways to access the API of this MPI extension. The first method is to call upon the modules URL starting with mpi - this is the MVC method. The second method is to call upon the file yireo_mpi.php - this is the entry-file method.

MVC method

The index action of the IndexController can be accessed as such:


This gives a listing of all the available metric-groups and their metrics.

To get all data from the metric-group "basic", use the following:


To get all data from the metric "test", use the following:


Note that one metric might still contain multiple results.

The API only handles basic GET and POST requests, no fancy REST or JSON-RPC.

Entry-file method

The entry-file can be accessed as such:


To get all data from the metric-group basic, use the following:


You can use the group all for all resources.


By default, the output is JSON format. You can switch to a simple PHP dump by changing the format parameter in the URL:


Instructions for using composer

Use composer to install this extension. First make sure to initialize composer with the right settings:

composer -n init
composer install --no-dev

Next, modify your local composer.json file:

    "require": {
        "yireo/magento1-mpi": "dev-master",
        "magento-hackathon/magento-composer-installer": "*"
            "packagist": false

Make sure to set the magento-root-dir properly. Test this by running:

composer update --no-dev