PHPackages                             ifresh/collection-macros - 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. ifresh/collection-macros

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

ifresh/collection-macros
========================

A collection of various useful additions to the Laravel collection class

v1.0.2(4y ago)191PHPPHP ^8.0

Since Mar 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iFreshDevelopment/laravel-collection-macros)[ Packagist](https://packagist.org/packages/ifresh/collection-macros)[ RSS](/packages/ifresh-collection-macros/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/91746f95928e1942636e0f23488e0a237ccc27629265ea5ce0b48ca5b2b46411/68747470733a2f2f6966726573682e6e6c2f6170702f7468656d65732f6966726573682f646973742f696d616765732f6c6f676f2e737667)](https://ifresh.nl)iFresh Laravel Collection helpers
=================================

[](#ifresh-laravel-collection-helpers)

---

Description
-----------

[](#description)

This package contains a set of (silly) Laravel Collection macros. You probably won't need them. Or maybe you do, I don't know, you do you.

[![](https://camo.githubusercontent.com/91718a6ca04de5057f50323162d4324fdc6b756ed01c73a8a29c0d91a26b798c/68747470733a2f2f707265766965772e726564642e69742f6b6c6236726c68396c6d3837312e6a70673f6175746f3d7765627026733d65333436653537636361656337663762363936326230313965363366643161613062326433653635)](https://camo.githubusercontent.com/91718a6ca04de5057f50323162d4324fdc6b756ed01c73a8a29c0d91a26b798c/68747470733a2f2f707265766965772e726564642e69742f6b6c6236726c68396c6d3837312e6a70673f6175746f3d7765627026733d65333436653537636361656337663762363936326230313965363366643161613062326433653635)

Provided methods
----------------

[](#provided-methods)

### Numbers

[](#numbers)

Macro methods that are intended for working with collections that contain only numbers.

#### greaterThan

[](#greaterthan)

Returns a set of numbers that are larger than the provided minimum value. Non-inclusive.

```
// [3, 4]
collect([1, 2, 3, 4])->greaterThan(2);
```

#### lessThan

[](#lessthan)

Returns a set of numbers that are smaller than the provided maximum value. Non-inclusive.

```
// [1, 2]
collect([1, 2, 3, 4])->lessThan(3);
```

#### multiply

[](#multiply)

Returns the result that is gotten by multiplying all the numbers in the collection together.

```
// 6 (1 * 2 * 3)
collect([1, 2, 3])->multiply();
```

### Strings

[](#strings)

Macro methods that are intended for working with collections that contain only strings.

#### toLower

[](#tolower)

Convert all the strings in the collection to their lowercase value.

```
// ['a', 'b', 'c']
collect(['A', 'B', 'C'])->toLower();
```

#### toUpper

[](#toupper)

Convert all the strings in the collection to their uppercase value.

```
// ['A', 'B', 'C']
collect(['a', 'b', 'c'])->toUpper();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

3

Last Release

1517d ago

### Community

Maintainers

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

---

Top Contributors

[![stephanbouman](https://avatars.githubusercontent.com/u/67788644?v=4)](https://github.com/stephanbouman "stephanbouman (1 commits)")[![tkuijer](https://avatars.githubusercontent.com/u/1401811?v=4)](https://github.com/tkuijer "tkuijer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ifresh-collection-macros/health.svg)

```
[![Health](https://phpackages.com/badges/ifresh-collection-macros/health.svg)](https://phpackages.com/packages/ifresh-collection-macros)
```

PHPackages © 2026

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