PHPackages                             makaira/magento2-connect - 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. makaira/magento2-connect

ActiveMagento2-module

makaira/magento2-connect
========================

Makaira Headless Extension for Magento 2

00PHP

Since Mar 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MakairaIO/magento2-connect)[ Packagist](https://packagist.org/packages/makaira/magento2-connect)[ RSS](/packages/makaira-magento2-connect/feed)WikiDiscussions stable Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Makaira Headless Extension for Magento 2
========================================

[](#makaira-headless-extension-for-magento-2)

[![Packagist Version](https://camo.githubusercontent.com/adc4e97373b224490cb144560047f3296759f97c9c93310d5085107933d7f374/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616b616972612f6d6167656e746f322d636f6e6e656374)](https://packagist.org/packages/makaira/magento2-connect)[![Build Status](https://camo.githubusercontent.com/3d4b2a0dde5228beb4cd9cda92be6ec6f593deb9e20a51a74eb156e8839cf862/68747470733a2f2f7472617669732d63692e6f72672f6d616b616972612f6d6167656e746f322d636f6e6e6563742e7376673f6272616e63683d6d61696e)](https://travis-ci.org/makaira/magento2-connect)

This document helps you integrate the Makaira Headless Extension into your Magento 2 Shop.

Table of contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Activating the Module](#activating-the-module)
- [API endpoint examples](#api-endpoint-examples)

Requirements
------------

[](#requirements)

This module supports:

- Magento 2 version 2.2 and higher
- PHP version 7.1 and higher
    **Warning**: PHP 7.0 is not supported

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

[](#installation)

To install module, open your terminal and run the command:

```
composer require makaira/magento2-connect:dev-main

```

Refer to Composer manual for more information. If, for some reason, `composer` is not available globally, proceed to install it following the instructions available on the [project website](https://getcomposer.org/doc/00-intro.md).

Activating the Module
---------------------

[](#activating-the-module)

From the root of your Magento 2 installation, enter these commands in sequence:

```
php bin/magento module:enable Makaira_Headless
php bin/magento setup:upgrade

```

As a final step, check the module activation by running:

```
php bin/magento module:status

```

The module should now appear in the upper list *List of enabled modules*.

That's it, you are ready to go!

API endpoint examples
---------------------

[](#api-endpoint-examples)

All examples below are of content type `application/json`. PUT, DELETE and POST methods require a raw body with valid JSON.

### Cart actions

[](#cart-actions)

Get all cart articles

```
GET /makaira/cart/

Response:
{
    "success": true,
    "cart": {
        "items": [],
        "total": 0
    }
}

```

Add article to cart

```
POST /makaira/cart/

Body:
{
    "sku": "24-MB04",
    "quantity": "1"
}

Response:
{
    "success": true,
    "cart": {
        "items": [
            {
                "sku": "24-MB04",
                "name": "Strive Shoulder Pack",
                "quantity": 1,
                "price": 32
            }
        ],
        "total": 32
    }
}

```

Delete article from cart

```
DELETE /makaira/cart/

Body:
{
    "sku": "24-MB04"
}

Response:
{
    "success": true,
    "message": "Der Artikel wurde entfernt.",
    "sku": "24-MB04"
}

```

Change article quantity in cart

```
PUT /makaira/cart/

Body:
{
    "sku": "24-MB04",
    "quantity": "3"
}

Response:
{
    "success": true,
    "cart": {
        "items": [
            {
                "sku": "24-MB04",
                "name": "Strive Shoulder Pack",
                "quantity": 3,
                "price": 32
            }
        ],
        "total": 96
    }
}

```

### User actions

[](#user-actions)

Get currently logged in user

```
GET /makaira/user/

Response:
{
    "success": true,
    "user": null
}

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![sandra-codekunst](https://avatars.githubusercontent.com/u/67009024?v=4)](https://github.com/sandra-codekunst "sandra-codekunst (12 commits)")

### Embed Badge

![Health badge](/badges/makaira-magento2-connect/health.svg)

```
[![Health](https://phpackages.com/badges/makaira-magento2-connect/health.svg)](https://phpackages.com/packages/makaira-magento2-connect)
```

PHPackages © 2026

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