PHPackages                             drupol/phpartition - 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. drupol/phpartition

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

drupol/phpartition
==================

Partition problem for balanced arrays splitting made easy.

0.1.2(9y ago)94.5k[1 PRs](https://github.com/drupol/phpartition/pulls)1GPL-2.0+PHP

Since Jan 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/drupol/phpartition)[ Packagist](https://packagist.org/packages/drupol/phpartition)[ Docs](https://github.com/drupol/phpartition)[ RSS](/packages/drupol-phpartition/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (11)Versions (5)Used By (1)

PHPartition
-----------

[](#phpartition)

[![Build Status](https://camo.githubusercontent.com/c9c3dfe6e129a58931709d0a99545e1a649a8d3683aa31c1c3077857c3f93ba5/68747470733a2f2f7472617669732d63692e6f72672f647275706f6c2f7068706172746974696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/drupol/phpartition) [![Code Coverage](https://camo.githubusercontent.com/638cb8a3b8e77c6ce0c828e6e47e17499a1e8cd1d5dd0977e8608b58f0fda5f8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f647275706f6c2f7068706172746974696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/drupol/phpartition/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/855eecbb67d2c03ed33641136090be4c47c16ced400aff9c59cc306479b75b01/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f647275706f6c2f7068706172746974696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/drupol/phpartition/?branch=master) [![Dependency Status](https://camo.githubusercontent.com/6f1506b0f2bcd25694af42b69a8cc4c19233ba598a761b0774f64bf7220217f9/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538353531663464346436343636303034633238636338662f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/58551f4d4d6466004c28cc8f)

In number theory and computer science, the partition problem is the task of deciding whether a given multiset of items can be partitioned into multiple balanced subsets.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6,
- (optional) [PHPUnit](https://phpunit.de/) to run tests.

Examples
--------

[](#examples)

```
