PHPackages                             spryker-example/product-offer-warehouse-allocation-example - 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. spryker-example/product-offer-warehouse-allocation-example

ActiveLibrary

spryker-example/product-offer-warehouse-allocation-example
==========================================================

ProductOfferWarehouseAllocationExample module

0276PHP

Since Nov 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/spryker-example/product-offer-warehouse-allocation-example)[ Packagist](https://packagist.org/packages/spryker-example/product-offer-warehouse-allocation-example)[ RSS](/packages/spryker-example-product-offer-warehouse-allocation-example/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ProductOfferWarehouseAllocationExample Module
=============================================

[](#productofferwarehouseallocationexample-module)

\[[![Latest Stable Version](https://camo.githubusercontent.com/615493804f8070433ebff5781373766d0646f6ec6b06b8ae9a7adbb11c5a6a2a/68747470733a2f2f706f7365722e707567782e6f72672f737072796b65722f70726f647563742d6f7074696f6e2f762f737461626c652e737667)](https://camo.githubusercontent.com/615493804f8070433ebff5781373766d0646f6ec6b06b8ae9a7adbb11c5a6a2a/68747470733a2f2f706f7365722e707567782e6f72672f737072796b65722f70726f647563742d6f7074696f6e2f762f737461626c652e737667)\]( [![Latest Stable Version](https://camo.githubusercontent.com/f05dd0532bc819ed55971d05bdcaa1367579a11feaa6192764c38a4ea2188e59/68747470733a2f2f706f7365722e707567782e6f72672f737072796b65722f70726f647563742d6f666665722d77617265686f7573652d616c6c6f636174696f6e2d6578616d706c652f762f737461626c652e737667)](https://packagist.org/packages/spryker/product-offer-warehouse-allocation-example)) [![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)

The strategy of this module is to find the first warehouse that has the required quantity of the items ordered. Based on the item stock, the warehouses are sorted in descending order. If the requested quantity of the item is available in the first warehouse, that is, the one holding the biggest stock of the item, this warehouse is assigned to fulfill the order item. The warehouse with the never-out-of-stock item quantity is always assigned to the item.

Keep in mind that this is just an example. You are free to implement any business logic using a strategy that will reflect your actual business processes.

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

[](#installation)

```
composer require spryker/product-offer-warehouse-allocation-example

```

Documentation
-------------

[](#documentation)

[Spryker Documentation](https://docs.spryker.com)

Disclaimer
----------

[](#disclaimer)

This module is provided as an *example* to demonstrate certain functionalities. It is not intended for use in production systems and should be treated solely as a learning resource and example of an implementation. Therefore, it is strongly recommended to thoroughly review, modify, and *adapt the code to suit your specific requirements* before deploying it in any production setting.

Please note that *no liabilities or warranties* are provided with this codebase. The authors and contributors of this project cannot be held responsible for any damages or issues that may arise from the use or misuse of this code. It is your responsibility to assess the suitability of the module for your use case and to ensure that proper testing, security measures, and safeguards are implemented when integrating it into any production system.

*We encourage you to learn from this example*, understand the underlying principles, and *adapt the code to meet your specific needs*. Feel free to explore, experiment, and build upon this module to create robust and reliable solutions tailored to your specific requirements!

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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://avatars.githubusercontent.com/u/10738957?v=4)[Spryker Bot](/maintainers/spryker-bot)[@spryker-bot](https://github.com/spryker-bot)

---

Top Contributors

[![a-sabaa](https://avatars.githubusercontent.com/u/1667759?v=4)](https://github.com/a-sabaa "a-sabaa (4 commits)")[![asmarovydlo](https://avatars.githubusercontent.com/u/15832795?v=4)](https://github.com/asmarovydlo "asmarovydlo (1 commits)")[![AsonUnique](https://avatars.githubusercontent.com/u/20453760?v=4)](https://github.com/AsonUnique "AsonUnique (1 commits)")[![floriankraemer](https://avatars.githubusercontent.com/u/4996022?v=4)](https://github.com/floriankraemer "floriankraemer (1 commits)")[![pushokwhite](https://avatars.githubusercontent.com/u/4017411?v=4)](https://github.com/pushokwhite "pushokwhite (1 commits)")[![sakharova-yuliia](https://avatars.githubusercontent.com/u/62552852?v=4)](https://github.com/sakharova-yuliia "sakharova-yuliia (1 commits)")

### Embed Badge

![Health badge](/badges/spryker-example-product-offer-warehouse-allocation-example/health.svg)

```
[![Health](https://phpackages.com/badges/spryker-example-product-offer-warehouse-allocation-example/health.svg)](https://phpackages.com/packages/spryker-example-product-offer-warehouse-allocation-example)
```

PHPackages © 2026

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