Yireo_EasierExtensionAttributes

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes

Magento version PHP version License Latest Version

This module tries to make implementing Magento 2 Extension Attributes easier by offering generic DI plugins that hook into various repositories.

Current features

  • Creation of plugins for various entities (See etc/di.xml for a listing of current repositories supported)
  • Saving simple Extension Attributes in the table of the original entity (by copying the Extension Attribute to a data property of the entity and vice versa)

Example

For an example implementation, see YireoTraining_EasierExtensionAttributesExample, more specifically its easier_extension_attributes.xml which complements the regular extension_attributes.xml. For extending the MSI Source entity, it adds a column example to the source database table, which is then automatically filled with the Yireo EasierExtensionAttributes module.

TODO

  • Integration tests for getList, save and getById
  • Integration tests for additional repositories
  • Connect your own simple Extension Attribute with a separate table
  • Connect your own Extension Attribute with a custom repository
  • Connect your own complex Extension Attribute
  • Try to merge extension_attributes.xml with easier_extension_attributes.xml to cleanup code
  • Automatically add extension attributes to frontend and backend forms

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation

WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_EasierExtensionAttributes

Composer details
Magento module name
Yireo_EasierExtensionAttributes
Composer name
yireo/magento2-easier-extension-attributes
Composer version
No release yet
Default branch
master
Requirements
php: >=8.2 <8.6
magento/framework: ^103.0
Releases
Changelog No changelog available

Last modified: October 17, 2026