PHPackages                             ecomdev/magento2-product-data-preloader - 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. ecomdev/magento2-product-data-preloader

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

ecomdev/magento2-product-data-preloader
=======================================

Magento 2 Product Data Pre-Loader FTW

1.1.1(3y ago)11953.9k↑14.2%16[2 PRs](https://github.com/EcomDev/magento2-product-preloader/pulls)MITPHPPHP ~7.2|~8.0

Since Aug 21Pushed 3y ago16 watchersCompare

[ Source](https://github.com/EcomDev/magento2-product-preloader)[ Packagist](https://packagist.org/packages/ecomdev/magento2-product-data-preloader)[ RSS](/packages/ecomdev-magento2-product-data-preloader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Product Data Pre-Loader
=======================

[](#product-data-pre-loader)

Magento platform code and third-party extensions in a lot of cases produce redundant database queries on product collections load.

This module provides an easy way to pre-load data for product collections like prices, stock data, and many more by using different types of load types. Right now it supports 3 types of loaded product collections:

- `list` Products that are using price index in selection, so it is safe to use stale index data for data loader
- `cart` Products that are used to calculate customers shopping cart and require accurate data to be loaded from database
- `other` Products that are not falling into any of the above categories

In order to pre-load data for a product collection, you need to implement `EcomDev\ProductDataPreLoader\DataService\DataLoader` interface with such methods:

- `isApplicable(string $type): bool` method that is used to decide if your loader compatible with specific product collection type.
- `load(ScopeFilter $filter, ProductWrapper[] $products): array` method that preloads data into `LoadService` that can be used later to access data by your loader id.

Custom loaders should be added to `LoadService` object via DI configuration like this:

```

            My\Module\Loader\MyCustomLoader

```

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

[](#installation)

Given EOL of Composer 1 all new packagist packages are not published for some time. So best way to keep your install up-to-date is to use Composer 2.0.

```
composer require ecomdev/magento2-product-data-preloader
```

Usage Example
-------------

[](#usage-example)

This [sample module](https://github.com/EcomDev/example-preloading-configurable-product) implements optimistic preloader for configurable product data without taking into account simple product status for:

- Price of configurable product on product list
- Stock availability from MSI for configurable product
- Minimal tier price across simple products for configurable

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~266 days

Total

3

Last Release

1197d ago

PHP version history (2 changes)1.0.0PHP ~7.2

1.1.0PHP ~7.2|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/190d12eae43e0d874394cbc7fc49ea94c6b6e1bc8b05f75b94fbd0b9c4b5d15f?d=identicon)[IvanChepurnyi](/maintainers/IvanChepurnyi)

---

Top Contributors

[![IvanChepurnyi](https://avatars.githubusercontent.com/u/866758?v=4)](https://github.com/IvanChepurnyi "IvanChepurnyi (15 commits)")[![edward-simpson](https://avatars.githubusercontent.com/u/26060776?v=4)](https://github.com/edward-simpson "edward-simpson (1 commits)")[![parththummar](https://avatars.githubusercontent.com/u/7849652?v=4)](https://github.com/parththummar "parththummar (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ecomdev-magento2-product-data-preloader/health.svg)

```
[![Health](https://phpackages.com/badges/ecomdev-magento2-product-data-preloader/health.svg)](https://phpackages.com/packages/ecomdev-magento2-product-data-preloader)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

167930.4k5](/packages/yireo-magento2-googletagmanager2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)

PHPackages © 2026

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