PHPackages                             tobymaxham/php-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. tobymaxham/php-helpers

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

tobymaxham/php-helpers
======================

A PHP packages provided with many helper functions and classes

06PHP

Since Jun 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/TobyMaxham/php-helpers)[ Packagist](https://packagist.org/packages/tobymaxham/php-helpers)[ RSS](/packages/tobymaxham-php-helpers/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

TobyMaxham PHP Helpers
======================

[](#tobymaxham-php-helpers)

A PHP packages provided with many helper functions and classes. I use this in many projects.

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

[](#installation)

```
composer require tobymaxham/php-helpers

```

Usage
-----

[](#usage)

### Functions

[](#functions)

`collect`

```
$collection = collect(['Freddy', 'Teddy', 'Eddy']);

$collection->first(); // Freddy
$collection->last(); // Eddy

foreach ($collection as $key => $value) {
    echo $key . ' => ' . $value;
}

// 0 => Freddy
// 1 => Teddy
// 2 => Eddy
```

### Classes

[](#classes)

....

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/900ab0a66bf701f3fb99a4db54276b4984cf3cf9b55ccad6df65c034f58be85f?d=identicon)[TobyMaxham](/maintainers/TobyMaxham)

### Embed Badge

![Health badge](/badges/tobymaxham-php-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/tobymaxham-php-helpers/health.svg)](https://phpackages.com/packages/tobymaxham-php-helpers)
```

PHPackages © 2026

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