PHPackages                             antikirra/array-shuffle - 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. antikirra/array-shuffle

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

antikirra/array-shuffle
=======================

1.0.0(2y ago)1105MITPHPPHP ^5.6 || ^7.0 || ^8.0

Since May 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/antikirra/array-shuffle)[ Packagist](https://packagist.org/packages/antikirra/array-shuffle)[ RSS](/packages/antikirra-array-shuffle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Consistent parameterized array shuffling for PHP
================================================

[](#consistent-parameterized-array-shuffling-for-php)

Using a numerical representation of anything (whether it's a client's IP address, a date in the format YYYYMMDD, or a unique user identifier), you can generate a deterministic array of data sorted in a pseudorandom manner. This can be useful for implementing both business tasks and writing tests.

> Be cautious when using associative arrays, deeply nested arrays, or arrays containing objects. The implementation of this library does not guarantee predictable results in all of the mentioned cases. Special attention is given to simplicity of implementation and data processing speed.

Install
-------

[](#install)

```
composer require antikirra/array-shuffle
```

Basic usage
-----------

[](#basic-usage)

```
