PHPackages                             extmag/shipping-box-packer - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. extmag/shipping-box-packer

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

extmag/shipping-box-packer
==========================

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

4.1.1(11mo ago)01.3kMITPHPPHP ^8.2CI passing

Since Jul 28Pushed 8mo agoCompare

[ Source](https://github.com/extmag/shipping-box-packer)[ Packagist](https://packagist.org/packages/extmag/shipping-box-packer)[ Docs](https://boxpacker.io/)[ GitHub Sponsors](https://github.com/dvdoug)[ RSS](/packages/extmag-shipping-box-packer/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (96)Used By (0)

BoxPacker
=========

[](#boxpacker)

[![Build Status](https://github.com/dvdoug/BoxPacker/workflows/CI/badge.svg?branch=master)](https://github.com/dvdoug/BoxPacker/actions?query=workflow%3ACI+branch%3Amaster)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/35b88393903ba53de0467244cbc8d1971302e19c5c94ed047a2927b892b779b7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6476646f75672f426f785061636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dvdoug/BoxPacker/?branch=master)[![Download count](https://camo.githubusercontent.com/0882d3a471549012067e264260784c9975caf1be1926d1e3460b6a8c6d02560c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6476646f75672f626f787061636b65722e737667)](https://packagist.org/packages/dvdoug/boxpacker)[![Current version](https://camo.githubusercontent.com/819de336bc554a20123272625bde1a792edd2b99135ac74a2c148df9a2eeec9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6476646f75672f626f787061636b65722e737667)](https://packagist.org/packages/dvdoug/boxpacker)[![Documentation](https://camo.githubusercontent.com/f6681940cd4047dff44facc25bded67a3b1016fcae32970586a9a9a90aa9e31d/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f626f787061636b65722f62616467652f3f76657273696f6e3d737461626c65)](https://www.boxpacker.io/en/stable/)

An implementation of the "4D" bin packing/knapsack problem i.e. given a list of items, how many boxes do you need to fit them all in taking into account physical dimensions and weights.

Especially useful for e.g. e-commerce contexts when you need to know box size/weight to calculate shipping costs, or even just want to know the right number of labels to print.

See [documentation](https://boxpacker.io/) for more details.

License
-------

[](#license)

BoxPacker is MIT-licensed.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance57

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.5% 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 ~47 days

Recently: every ~25 days

Total

95

Last Release

247d ago

Major Versions

2.7.0 → 3.6.02020-04-26

2.7.1 → 3.6.12020-06-11

1.7.3 → 2.7.22020-09-28

2.7.2 → 3.6.22020-09-28

3.12.1 → 4.0.02023-12-04

PHP version history (6 changes)0.1PHP &gt;=5.3.0

1.0PHP &gt;=5.4.0

3.0.0PHP ^7.1

1.7.3PHP ^7.1||^8.0

3.12.0PHP ^7.4||^8.0

4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/aef53d5116b9818131aa5054a038968e9f35640aea2947750b9fb619ef2189ed?d=identicon)[extmag](/maintainers/extmag)

---

Top Contributors

[![dvdoug](https://avatars.githubusercontent.com/u/1571110?v=4)](https://github.com/dvdoug "dvdoug (975 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (44 commits)")[![colinmollenhour](https://avatars.githubusercontent.com/u/38738?v=4)](https://github.com/colinmollenhour "colinmollenhour (7 commits)")[![IBBoard](https://avatars.githubusercontent.com/u/388582?v=4)](https://github.com/IBBoard "IBBoard (4 commits)")[![Gemorroj](https://avatars.githubusercontent.com/u/885731?v=4)](https://github.com/Gemorroj "Gemorroj (3 commits)")[![bram123](https://avatars.githubusercontent.com/u/7457368?v=4)](https://github.com/bram123 "bram123 (2 commits)")[![Cosmologist](https://avatars.githubusercontent.com/u/966525?v=4)](https://github.com/Cosmologist "Cosmologist (2 commits)")[![radamich](https://avatars.githubusercontent.com/u/5845281?v=4)](https://github.com/radamich "radamich (1 commits)")[![dobecker](https://avatars.githubusercontent.com/u/14109475?v=4)](https://github.com/dobecker "dobecker (1 commits)")[![faradey](https://avatars.githubusercontent.com/u/61543096?v=4)](https://github.com/faradey "faradey (1 commits)")[![Garbee](https://avatars.githubusercontent.com/u/868301?v=4)](https://github.com/Garbee "Garbee (1 commits)")[![joachimdeboer](https://avatars.githubusercontent.com/u/5341133?v=4)](https://github.com/joachimdeboer "joachimdeboer (1 commits)")[![acabala](https://avatars.githubusercontent.com/u/530622?v=4)](https://github.com/acabala "acabala (1 commits)")

---

Tags

containerboxshippingpackagingknapsackboxespackingbinpackingbin packingboxpackingparcelparcelpacking

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/extmag-shipping-box-packer/health.svg)

```
[![Health](https://phpackages.com/badges/extmag-shipping-box-packer/health.svg)](https://phpackages.com/packages/extmag-shipping-box-packer)
```

###  Alternatives

[dvdoug/boxpacker

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

6562.9M26](/packages/dvdoug-boxpacker)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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