PHPackages                             ikoncept/product-manager-adapter - 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. ikoncept/product-manager-adapter

ActiveLibrary

ikoncept/product-manager-adapter
================================

Usage in conjunction with the product register api

0.1.0(1y ago)063MITPHPPHP ^8.1

Since Sep 14Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ikoncept/product-manager-adapter)[ Packagist](https://packagist.org/packages/ikoncept/product-manager-adapter)[ Docs](https://github.com/ikoncept/product-manager-adapter)[ RSS](/packages/ikoncept-product-manager-adapter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (3)Used By (0)

Product manager adapter
=======================

[](#product-manager-adapter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2a930dd238aa2a837cad4933869b2e80d998ed551fb433d444927fc0bf30399f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696b6f6e636570742f70726f647563742d6d616e616765722d616461707465722e737667)](https://packagist.org/packages/ikoncept/product-manager-adapter)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ee24ddb36fdb859a739b83aaacad7d369ef6cffab645e7aaee31a880fb4de07e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696b6f6e636570742f70726f647563742d6d616e616765722d616461707465722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/ikoncept/product-manager-adapter/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/118fc790527bba64028644be2fc21788c465544cdb375053003ed325dfcf8241/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f696b6f6e636570742f70726f647563742d6d616e616765722d616461707465722f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/ikoncept/product-manager-adapter/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)

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

[](#installation)

You can install the package via composer:

```
composer require ikoncept/product-manager-adapter
```

```
php artisan vendor:publish --tag="product-manager-adapter-config"
```

This is the contents of the published config file:

```
return [
    'api_key' => env('PRODUCT_MANAGER_ADAPTER_KEY'),
    'endpoint' => env('PRODUCT_MANAGER_ADAPTER_ENDPOINT', 'https://products.malmsten.com')
];
```

Usage
-----

[](#usage)

### Routes

[](#routes)

This package comes with a couple of different controller methods to make interacting with the products api easier.

> Note You need to register the routes yourself

#### Recommended public routes

[](#recommended-public-routes)

```
// Get a tree node by ID. Usually when retrieving navigation on the front end
Route::get('/tree-nodes/{id}', [TreeNodeController::class, 'show']);

// Get a tree node via slug, usefull when retrieving a tree node from an url parameter
Route::get('/tree-nodes/{slug}/slug', [TreeNodeSlugsController::class, 'show']);

// Get a product with a specific SKU
Route::get('/products/{sku}', [ProductController::class, 'show']);
```

#### Recommended private routes

[](#recommended-private-routes)

```
// Get a list of all available product trees
Route::get('/product-trees', [ProductTreeController::class, 'index']);

// Get a tree representation of a specific node
Route::get('/node-trees/{id}', [NodeTreeController::class, 'index']);
```

### Specifying language

[](#specifying-language)

The product api has support for multiple languages. The required language is set via the `X-LOCALE` header. See below example

```
const payload = {
    params: {
        include: 'content',
    },
    headers: {
        'X-LOCALE': this.$i18n.locale,
    },
}
const { data } = await this.$axios.get('/api/products', payload)
```

### Filter out products for the active product tree

[](#filter-out-products-for-the-active-product-tree)

To prevent products from other trees to be included in various api calls the `X-PRODUCT-TREES` header can be used:

```
const payload = {
    params: {
        include: 'content',
    },
    headers: {
        'X-PRODUCT-TREES':  3
    },
}
const { data } = await this.$axios.get('/api/products', payload)
```

#### Complete example using the search filter:

[](#complete-example-using-the-search-filter)

```
const payload = {
    params: {
        include: 'content',
        number: 10,
        'filter[nodeIds]': this.nodeRootIds.join(','),
        'filter[search]': this.searchQuery,
    },
    headers: {
        'X-LOCALE': this.$i18n.locale,
        'X-PRODUCT-TREES': this.$store.getters['nav/productTreeRootIds'].join(',')
    },
}
const { data } = await this.$axios.get('/api/products', payload)
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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 ~657 days

Total

2

Last Release

678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53842b68734249d1bd4581663ce93e12dd241047cbdc11c49065f294c0228d36?d=identicon)[Albin N](/maintainers/Albin%20N)

---

Top Contributors

[![nivv](https://avatars.githubusercontent.com/u/4033930?v=4)](https://github.com/nivv "nivv (18 commits)")

---

Tags

laravelikonceptproduct-manager-adapter

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ikoncept-product-manager-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/ikoncept-product-manager-adapter/health.svg)](https://phpackages.com/packages/ikoncept-product-manager-adapter)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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