PHPackages                             bmxmale/magento2-services - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bmxmale/magento2-services

AbandonedArchivedMagento2-module[Utility &amp; Helpers](/categories/utility)

bmxmale/magento2-services
=========================

Services for developers

01.5k[2 PRs](https://github.com/bmxmale/magento2-services/pulls)PHP

Since Sep 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bmxmale/magento2-services)[ Packagist](https://packagist.org/packages/bmxmale/magento2-services)[ RSS](/packages/bmxmale-magento2-services/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

```
__/\\\\\\\\\\\\\____/\\\\____________/\\\\__/\\\_______/\\\__/\\\\____________/\\\\_____/\\\\\\\\\_____/\\\______________/\\\\\\\\\\\\\\\_
 _\/\\\/////////\\\_\/\\\\\\________/\\\\\\_\///\\\___/\\\/__\/\\\\\\________/\\\\\\___/\\\\\\\\\\\\\__\/\\\_____________\/\\\///////////__
  _\/\\\_______\/\\\_\/\\\//\\\____/\\\//\\\___\///\\\\\\/____\/\\\//\\\____/\\\//\\\__/\\\/////////\\\_\/\\\_____________\/\\\_____________
   _\/\\\\\\\\\\\\\\__\/\\\\///\\\/\\\/_\/\\\_____\//\\\\______\/\\\\///\\\/\\\/_\/\\\_\/\\\_______\/\\\_\/\\\_____________\/\\\\\\\\\\\_____
    _\/\\\/////////\\\_\/\\\__\///\\\/___\/\\\______\/\\\\______\/\\\__\///\\\/___\/\\\_\/\\\\\\\\\\\\\\\_\/\\\_____________\/\\\///////______
     _\/\\\_______\/\\\_\/\\\____\///_____\/\\\______/\\\\\\_____\/\\\____\///_____\/\\\_\/\\\/////////\\\_\/\\\_____________\/\\\_____________
      _\/\\\_______\/\\\_\/\\\_____________\/\\\____/\\\////\\\___\/\\\_____________\/\\\_\/\\\_______\/\\\_\/\\\_____________\/\\\_____________
       _\/\\\\\\\\\\\\\/__\/\\\_____________\/\\\__/\\\/___\///\\\_\/\\\_____________\/\\\_\/\\\_______\/\\\_\/\\\\\\\\\\\\\\\_\/\\\\\\\\\\\\\\\_
        _\/////////////____\///______________\///__\///_______\///__\///______________\///__\///________\///__\///////////////__\///////////////__

```

### Bmxmale\_Services

[](#bmxmale_services)

Magento 2 module with some useful services

#### Services

[](#services)

##### Product / Attribute

[](#product--attribute)

> ##### GetAttributeDataByAttributeCode
>
> [](#getattributedatabyattributecode)

---

Service select product attributes except `static` backend type. Throws `NoSuchEntityException` if specified attribute not exist.

```
use Bmxmale\Services\Service\Product\Attribute\GetAttributeDataByAttributeCode;
...
public function __construct(
    private GetAttributeDataByAttributeCode $getAttributeDataByAttributeCode,
) {
}

public function someMethod()
{
    $attributeData = $this->getAttributeDataByAttributeCode->execute('ld_id_ean');

    // ^ array:4 [
    //   "attribute_code" => "ld_id_ean"
    //   "attribute_id" => "583"
    //   "backend_type" => "varchar"
    //   "default_value" => null
    // ]
}
```

With `di.xml` you are allowed to extend additional attribute columns from `eav_attribute` table. Just override `$additionalAttributeColumns` argument on service construct

```

                default_value
                frontend_label

            ExtendedGetAttributeDataByAttributeCode

```

```
public function someMethod()
{
    $attributeData = $this->getAttributeDataByAttributeCode->execute('ld_id_ean');

    // ^ array:4 [
    //   "attribute_code" => "ld_id_ean"
    //   "attribute_id" => "583"
    //   "backend_type" => "varchar"
    //   "default_value" => null
    //   "frontend_label" => "EAN"
    // ]
}
```

> ##### GetAttributeValuesForEntityId
>
> [](#getattributevaluesforentityid)

---

Service select product attribute values. Return `[store_id => value]` entries. Return empty array if no values. Throws `NoSuchEntityException` if specified attribute not exist.

```
use Bmxmale\Services\Service\Product\Attribute\GetAttributeValuesForEntityId;
...
public function __construct(
    private GetAttributeValuesForEntityId $getAttributeValuesForEntityId,
) {
}

public function someMethod()
{
    $attributeValues = $this->getAttributeValuesForEntityId->execute(
        attributeCode: 'ld_id_ean',
        entityId: 19011
    );

    //    # store_id => value
    //    ^ array:4 [
    //      0 => "5900988500835"
    //      1 => "5900988500835"
    //      4 => "5900988500835"
    //      12 => "5900988500835"
    //    ]
}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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/064d5eec0d2cba7f04048b479b850b2cfc4bfa1ba50b98738624feba7ffe4647?d=identicon)[bmxmale](/maintainers/bmxmale)

---

Top Contributors

[![bmxmale](https://avatars.githubusercontent.com/u/23213308?v=4)](https://github.com/bmxmale "bmxmale (3 commits)")

### Embed Badge

![Health badge](/badges/bmxmale-magento2-services/health.svg)

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

###  Alternatives

[muqsit/simple-packet-handler

Handle specific data packets (virion for PMMP API 4.0.0)

426.1k3](/packages/muqsit-simple-packet-handler)[webdevstudios/taxonomy_core

A tool to make custom taxonomy registration just a bit simpler. Automatically registers taxonomy labels, and provides helpful methods.

394.0k1](/packages/webdevstudios-taxonomy-core)[metabolism/wp-steroids

Supercharge Wordpress with YML configuration, increase performance and security

237.1k1](/packages/metabolism-wp-steroids)[zman/zman

A Jewish date converter and helper.

186.4k](/packages/zman-zman)[pudongping/hyperf-wise-locksmith

A mutex library provider for the Hyperf framework, designed to enable serialized execution of PHP code in high-concurrency scenarios.

106.3k2](/packages/pudongping-hyperf-wise-locksmith)

PHPackages © 2026

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