smile / module-scoped-eav

smile/module-scoped-eav

Smile - Scoped EAV utils.

  • Aurélien FOUCRET
  • Cédric MAGREZ
magento2-module Compatibility: 2.4.8-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0

Scoped EAV

What is Scoped EAV Magento 2 Module?

This module allow possibility to create custom EAV (Entity Attribute Value model) to describe entities where the number of attributes (properties and parameters) which can be used to describe it.

Who is developing this module ?

[image: Smile]

This module is built by Smile.

Smile is the European leader of Open Source and also a four-times Europe Partner of the the Year (2010-2014), two-times Spirit of Excellence (2015-2016), Global Elite Partner (2017-now), and Regional Commercial Partner (2018) awarded by Magento.

Our multidisciplinary team brings together experts in technology, innovation, and new applications.

Together we explore, invent, and test technologies of the future, to better serve our clients.

Contributing

You can contribute to this module by submitting issues or pull requests.

For more details, please take a look at the contribution guidelines.

Changelog

All notable changes are recorded in this changelog.

Standards & Code Quality

Smile Lab Quality Suite (Magento) provides coding standards / rulesets that can be used on Magento projects.

Changelog

All notable changes to this project will be documented in this file.

1.3.9 - 2024-01-09

  • Add "use_default" to the entity data on controller save action

1.3.8 - 2023-07-13

  • Move backend_type detection from controller to ViewModel
  • Add name to blocks in attribute edit form

1.3.7 - 2022-12-02

  • Fix Zend Validate Regex

1.3.6 - 2022-11-21

  • Add github actions workflow

1.3.5 - 2022-11-07

  • Switch between two stores on custom entity create/edit
  • Use a multiselect attribute on custom entity create/edit
  • Update return for function getEntityWebsiteTable on schema setup

1.3.4 - 2022-10-19

  • Add Smile Lab Quality Suite
  • Analyse code style with phpcs / phpmd / phpstan command

1.3.3 - 2022-09-14

  • Specify php version on composer.json
  • Add block documentation on main template
  • Add view model instead helper on template

1.3.2 - 2022-09-06

  • Add use for classes and use type hints on functions

1.3.1 - 2022-09-01

  • Add strict types on php files
  • Remove disclaimer / annotation comments
  • Add .gitattributes and update .gitignore
  • Update README

1.3.0 - 2022-08-10

  • Add compatibility version for Magento 2.4.4 and Php 8
  • Add CHANGELOG.md file

1.2.0 - 2022-09-23

  • Allow installing on more recent M2 versions

1.1.2 - 2022-09-22

  • Allow installing on more recent M2 versions

1.1.1 - 2020-08-19

  • Update composer.json to work with Magento 2.3.5

1.1.0 - 2020-03-30

  • Update requirements to Magento 2.3.4 and fix compatibility

1.0.1 - 2020-03-27

  • Remove explicit PHP requirements.

1.0.0 - 2019-05-06

  • Initial Release
Versions
Version Stability QA Status Compatibility Released
1.3.9 stable Fail Magento 2.4.8-2.4.9 Details 2024-01-09 14:47:36
1.3.8 stable Not tested Not yet tested Details 2023-07-13 16:09:32
1.3.7 stable Not tested Not yet tested Details 2022-12-02 17:06:23
1.3.6 stable Not tested Not yet tested Details 2022-12-02 17:06:03
1.3.5 stable Not tested Not yet tested Details 2022-11-07 09:54:26
1.3.4 stable Not tested Not yet tested Details 2022-10-19 15:52:05
1.3.3 stable Not tested Not yet tested Details 2022-09-14 13:26:30
1.3.2 stable Not tested Not yet tested Details 2022-09-06 14:43:05
1.3.1 stable Not tested Not yet tested Details 2022-09-01 13:13:46
1.3.0 stable Not tested Not yet tested Details 2022-08-10 12:38:12
1.2.0 stable Not tested Not yet tested Details 2020-09-23 14:24:13
1.1.2 stable Not tested Not yet tested Details 2020-09-22 14:48:55
1.1.1 stable Not tested Not yet tested Details 2020-08-19 13:56:20
1.1.0 stable Not tested Not yet tested Details 2020-03-30 21:27:42
1.0.1 stable Not tested Not yet tested Details 2020-03-27 12:32:56
1.0.0 stable Not tested Not yet tested Details 2019-05-06 11:06:14

Requires 4

Package Constraint
php ^7.4 || ^8.1
magento/framework *
magento/magento-composer-installer *
magento/module-catalog >=103.0.4

Requires-dev 1

Package Constraint
smile/magento2-smilelab-quality-suite ^3.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 not tested not tested
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 71 71 warnings (ruleset: Magento2) — 3 auto-fixable with phpcbf
PHPMD Pass 0
Cpd Pass 0
Composer validate Info 3 valid; 3 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 26 26
2.4.8 Unknown 26
2.4.9 26 26

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0
Authors

More from smile

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.