PHPackages                             cloudcake/php-fluent - 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. cloudcake/php-fluent

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

cloudcake/php-fluent
====================

Developer-experience focused string and array manipulation.

v1.1(6y ago)00[1 PRs](https://github.com/cloudcake/php-fluent/pulls)MITPHP

Since Mar 19Pushed 5y agoCompare

[ Source](https://github.com/cloudcake/php-fluent)[ Packagist](https://packagist.org/packages/cloudcake/php-fluent)[ RSS](/packages/cloudcake-php-fluent/feed)WikiDiscussions master Synced 1w ago

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

PHP Fluent
==========

[](#php-fluent)

Developer-experience focused string and array manipulation. Fluent is an extremely thin wrapper around laravel/helpers with some extras that exposes two global functions (`str()` and `arr()`) rather than the plethora of available helpers.

If you dislike global functions, stick to [laravel/helpers](https://github.com/laravel/helpers) - it has (recently added) fluent-like syntax without the extras.

Installation
============

[](#installation)

🍪 Laravel is NOT required to use this package.

```
composer require cloudcake/php-fluent
```

Usage
=====

[](#usage)

It is important to note the slight argument placement change from the laravel/helpers package. The constructing data is always placed inside the helper function. This is to provide a more consistent, readable syntax you won't forget.

Example:

```
str('This is my string')->startsWith('This'); // true
```

Usage of helpers follows this syntax for all [string helpers](https://github.com/laravel/docs/blob/master/helpers.md#strings-1) as well as [array helpers](https://github.com/laravel/docs/blob/master/helpers.md#arrays--objects-1), the only exceptions being where an argument isn't required, for example `str()->random()` or `str()->uuid()`.

Extras
======

[](#extras)

### Ignore casing

[](#ignore-casing)

Sometimes it's useful to call helpers ignoring the casing of strings, you can do this by chaining `->ignoreCasing()` before executing the function on the string. This provides a cleaner solution than changing the casing on every string yourself.

Example:

```
str('tHiS is my string')->ignoreCasing()->startsWith('THIS'); // true
str('tHiS is my string')->startsWith('THIS'); // false
```

### Produce many

[](#produce-many)

There may be instances where you need to execute the same thing many times, for example let's say you need 10 UUID's, rather than iterating over the function many times, you may use `produce()` method.

Example:

```
str()->produce(10)->uuid();

// Array
// (
//     [0] => fc91fe0a-4254-4792-9604-e5fbf223d0a7
//     [1] => bdc0e4a1-86ca-4dba-ae95-ac4a2ad639d0
//     [2] => 95b06669-3262-4dfa-a9c3-69fc3251f94c
//     [3] => f0b2aec6-fb86-4beb-bdf2-74ddb25ff440
//     [4] => 2d0c02a0-2ec8-402f-b6eb-a1ce83f4e343
//     [5] => e0cc9098-cebf-42ec-89b2-8942930f0293
//     [6] => 2efba194-e2c7-48c7-965d-9efc963edf06
//     [7] => 8e010b42-1664-4272-be2f-90402010866d
//     [8] => ec668d35-ffd4-4b59-bd11-204fd193f6e8
//     [9] => e74a5362-e272-4af6-ba07-3d1f4352d653
// )
```

**Note**: If you use `1` as the produce value, the result will not be returned as an array.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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 ~0 days

Total

2

Last Release

2251d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1300442?v=4)[Stephen Lake](/maintainers/stephenlake)[@stephenlake](https://github.com/stephenlake)

---

Top Contributors

[![stephenlake](https://avatars.githubusercontent.com/u/1300442?v=4)](https://github.com/stephenlake "stephenlake (18 commits)")

### Embed Badge

![Health badge](/badges/cloudcake-php-fluent/health.svg)

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

###  Alternatives

[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)

PHPackages © 2026

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