PHPackages                             braunstetter/helper - 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. braunstetter/helper

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

braunstetter/helper
===================

Just a package for php helper classes.

v0.2.5(3y ago)02.1k↓50%3MITPHPPHP ^8.0

Since Mar 7Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (7)Used By (3)

Helper
======

[](#helper)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eb03a7e78718fce2cdea604bc6ffa7d5422cb6a49144a5f86be98ca7acbc15ea/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f427261756e737465747465722f68656c7065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/Braunstetter/helper/?branch=main)[![Code Coverage](https://camo.githubusercontent.com/93a5fbbc9ebcb8000ba1ed815867471ce934e42675a8ecc92b1e5765ff01d6f3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f427261756e737465747465722f68656c7065722f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/Braunstetter/helper/?branch=main)[![Total Downloads](https://camo.githubusercontent.com/53d6bcaebac9b42d1e03c7f4ec95e1765c12ca51d88916fd397ede2f04743b2d/687474703a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f68656c7065722f646f776e6c6f616473)](https://packagist.org/packages/braunstetter/helper)[![License](https://camo.githubusercontent.com/488418166000e6e9b463946ffc0bf332bb1f6ba2085cf09e3e228350bf48ff0a/687474703a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f68656c7065722f6c6963656e7365)](https://packagist.org/packages/braunstetter/helper)

A bundle for sharing usefully stuff around several projects.

- [Installation](#installation)
- [Array](#array)
    - [attachClass](#attachclass)
    - [attach](#attach)
    - [firstValue](#firstvalue)

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

[](#installation)

```
composer require braunstetter/helper
```

Array
-----

[](#array)

### attachClass

[](#attachclass)

This method is just handy when it comes to add a class to an existing class string.

```
Braunstetter\Helper\Arr::attachClass([ 'class' => 'mx-4 my-2' ], 'container')

# output:
# ['class' => 'mx-4 my-2 container']
```

### attach

[](#attach)

Sometimes just want to add some new attribute to an existing string.

```
Braunstetter\Helper\Arr::attach(
    [ 'data-controller' => 'example'],
    [ 'data-controller' => 'another-example']
)

# output:
# ['data-controller' => 'example another-example']
```

### firstValue

[](#firstvalue)

Returns the first value of a given array. If the array is empty it returns null.

```
Braunstetter\Helper\Arr::firstValue([
    3 => 'first',
    2 => 'second',
    0 => 'third'
])

# output:
# first
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

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

Every ~28 days

Recently: every ~35 days

Total

6

Last Release

1389d ago

### Community

Maintainers

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

---

Top Contributors

[![MichaelBrauner](https://avatars.githubusercontent.com/u/4937572?v=4)](https://github.com/MichaelBrauner "MichaelBrauner (7 commits)")

---

Tags

helperphpphphelper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/braunstetter-helper/health.svg)

```
[![Health](https://phpackages.com/badges/braunstetter-helper/health.svg)](https://phpackages.com/packages/braunstetter-helper)
```

###  Alternatives

[zjkal/time-helper

一个简单快捷的PHP日期时间助手类库。 a smart PHP datetime helper library.

21128.6k1](/packages/zjkal-time-helper)

PHPackages © 2026

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