PHPackages                             narendrav24/dynamicapifield - 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. narendrav24/dynamicapifield

ActiveMagento2-module

narendrav24/dynamicapifield
===========================

A demo module that demos how to add dynamic fields in product REST API response using extension attributes.

1.0.7(4y ago)010OSL-3.0PHPPHP ~7.3.0||~7.4.0

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/narendravyas24/DynamicApiField)[ Packagist](https://packagist.org/packages/narendrav24/dynamicapifield)[ Docs](https://github.com/narendravyas24/DynamicApiField)[ RSS](/packages/narendrav24-dynamicapifield/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Synopsis
--------

[](#synopsis)

This extension add two static constant attributes to product GET APis (/V1/products/:sku, /V1/products).

The example of adding extension attributes with plugin could be find in this extension

Motivation
----------

[](#motivation)

To demonstrate how to add extension attributes to product list and getlist REST API

### API

[](#api)

In order to get product or list of products by Magento API you need to do API request to appropriate service. In Response you will see product object which returns extension attributes

### Product Repository Plugin

[](#product-repository-plugin)

You can find plugin here: {extension\_folder}/Plugin/ProductAttributesLoad afterGet, afterGetList - this methods are listen ProductRepositoryInterface in order to add custom own attributes

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

[](#installation)

The extension can be installed using composer - composer require narendrav24/dynamicapifield

Enable the module by adding it the list of enabled modules in [the config](app/etc/config.php) or, if that file does not exist, installing Magento. After including this component and enabling it, you can verify it is installed by checking bin/magento module:status Narendra\_DynamicApiField

This should say that the module is enabled.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

3

Last Release

1520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61548e8b6dd109baa4da6f0a0e61505781475f2f25184569b8d631b36311181c?d=identicon)[narendravyas24](/maintainers/narendravyas24)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/narendrav24-dynamicapifield/health.svg)

```
[![Health](https://phpackages.com/badges/narendrav24-dynamicapifield/health.svg)](https://phpackages.com/packages/narendrav24-dynamicapifield)
```

PHPackages © 2026

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