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 2y 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 1mo ago

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1136d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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