PHPackages                             clairedv/laravel-array-helpers - 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. clairedv/laravel-array-helpers

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

clairedv/laravel-array-helpers
==============================

Some static helpers for querying and transforming php arrays

1.0(3y ago)08MITPHPPHP ^8.1

Since Apr 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Clairemc3/laravel-array-helpers-extended)[ Packagist](https://packagist.org/packages/clairedv/laravel-array-helpers)[ RSS](/packages/clairedv-laravel-array-helpers/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Array Helpers Extended
==============================

[](#laravel-array-helpers-extended)

A set of static helper methods to check and transform array data.

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

[](#installation)

Require this package with composer composer install ...

This package has been tested with Laravel 10

Methods
-------

[](#methods)

All of the methods in the class are static, just as Laravels own array helper methods are. As this class extends Laravels Arr helper class, you can use the ArrayHelper in place of the Arr class .

**sharesAnyValues()**

```
use ClaireDv\LaravelArrayHelpers\ArrayHelper;

$array1 = [1, 2, 3];
$array2 = [3, 4, 5];

ArrayHelper::sharesAnyValues(
    $array1, $array2); // returns true

```

**hasOnlyValue()**

```
use ClaireDv\LaravelArrayHelpers\ArrayHelper;

$array1 = ['claire'];

ArrayHelper::hasOnlyValue(
    'claire', $array2); // returns true

```

**isMulti()**

```
use ClaireDv\LaravelArrayHelpers\ArrayHelper;

$array1 = ['one' => ['two']];

ArrayHelper::isMulti($array1); // returns true

```

**arrayToString()**

```
use ClaireDv\LaravelArrayHelpers\ArrayHelper;

    $arrayToConvert = [
        'name' =>  'claire',
        'games' => [
            'discworld, 'broken age'
    ]]

$string  = ArrayHelper::arrayToString($array1);

// 'name: claire, games: discworld, broken age'

```

**replaceBracesWithValues()**

```
use ClaireDv\LaravelArrayHelpers\ArrayHelper;

$stringWithBraces = 'Dear {firstName}, Your order number is {orderNumber}';

$arrayWithValues = ['firstName' => 'Claire', 'orderNumber' => 'AB-1234'];

$string  = ArrayHelper::replaceBracesWithValues($array1);

// 'Dear Claire, Your order number is AB-1234'

```

Tests
-----

[](#tests)

Includes PHPUnit test suite.

To run the tests from the root of the project in the terminal: `./vendor/bin/phpunit`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1187d ago

### Community

Maintainers

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

---

Top Contributors

[![Clairemc3](https://avatars.githubusercontent.com/u/23581748?v=4)](https://github.com/Clairemc3 "Clairemc3 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clairedv-laravel-array-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/clairedv-laravel-array-helpers/health.svg)](https://phpackages.com/packages/clairedv-laravel-array-helpers)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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