PHPackages                             datalinx/php-utils - 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. datalinx/php-utils

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

datalinx/php-utils
==================

Collection of common helper functions organized into fluent classes

v2.6.0(7mo ago)0959[2 issues](https://github.com/DataLinx/php-utils/issues)1MITPHPPHP &gt;=7.4CI passing

Since Dec 17Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/DataLinx/php-utils)[ Packagist](https://packagist.org/packages/datalinx/php-utils)[ Docs](https://github.com/datalinx/php-utils)[ RSS](/packages/datalinx-php-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (1)

PHP Utilities
=============

[](#php-utilities)

[![Packagist Version](https://camo.githubusercontent.com/c774baf73516385c863e0fa1c574d62a79e66dd4756360bb852666a02200f489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646174616c696e782f7068702d7574696c73)](https://camo.githubusercontent.com/c774baf73516385c863e0fa1c574d62a79e66dd4756360bb852666a02200f489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646174616c696e782f7068702d7574696c73)[![Packagist PHP Version Support](https://camo.githubusercontent.com/438f72c2623164162368065f8fb2fe0392fc3795e9397d033850fff9380e5fd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646174616c696e782f7068702d7574696c73)](https://camo.githubusercontent.com/438f72c2623164162368065f8fb2fe0392fc3795e9397d033850fff9380e5fd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646174616c696e782f7068702d7574696c73)[![Packagist Downloads](https://camo.githubusercontent.com/621f19dc6e3367fc39292886c49d2068acce93e4161bc47502e9fc6b6ac4bc48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646174616c696e782f7068702d7574696c73)](https://camo.githubusercontent.com/621f19dc6e3367fc39292886c49d2068acce93e4161bc47502e9fc6b6ac4bc48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646174616c696e782f7068702d7574696c73)[![Test runner](https://github.com/DataLinx/php-utils/actions/workflows/test-runner.yml/badge.svg)](https://github.com/DataLinx/php-utils/actions/workflows/test-runner.yml)[![codecov](https://camo.githubusercontent.com/6225ef464607eabc65a7b264c7073373567093b73b67eb2f7a8458d2c6daeaaa/68747470733a2f2f636f6465636f762e696f2f67682f446174614c696e782f7068702d7574696c732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d343754345a4158333344)](https://codecov.io/gh/DataLinx/php-utils)[![Conventional Commits](https://camo.githubusercontent.com/9f7a75f0e3af8cca0597d218e8708da4791128679178573a9806a514be52d2eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e76656e74696f6e616c253230436f6d6d6974732d312e302e302d2532334645353139363f6c6f676f3d636f6e76656e74696f6e616c636f6d6d697473266c6f676f436f6c6f723d7768697465)](https://conventionalcommits.org)[![Packagist License](https://camo.githubusercontent.com/a0b616e5461fec704526fb8bd364743f3fb188bf0c13754b1be65dd9facc2963/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646174616c696e782f7068702d7574696c73)](https://camo.githubusercontent.com/a0b616e5461fec704526fb8bd364743f3fb188bf0c13754b1be65dd9facc2963/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646174616c696e782f7068702d7574696c73)

About
-----

[](#about)

This package is a collection of classes that provide a fluent OOP interface to manipulate common primitive data types such as strings, numbers, arrays and other structures by providing a lean wrapper around libraries from other packages.

See the changelog [here](CHANGELOG.md).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- `mbstring` and `intl` PHP extensions
- `picqer/php-barcode-generator` package, if you want to use the `FluentBarcode` wrapper
- Linux server is supported

Installing
----------

[](#installing)

Download it with composer:

```
composer require datalinx/php-utils
```

If you want to use the `FluentBarcode` wrapper (which is really cool!), install the additional dependency:

```
composer require picqer/php-barcode-generator
```

Usage
-----

[](#usage)

With an out-of-the-box installation, you must create an instance of each utility and then interact with it.

```
$string = new \DataLinx\PhpUtils\Fluent\FluentString('My  string');
echo $string->clean(); // Outputs: My string
```

However, if you include the `src/fluent_helpers.php` file, you can use the helper functions to create new instances in a leaner way:

```
echo str('My  string')->clean(); // Outputs: My string
```

You can also create your own helper functions to create new instances, if the ones this library provides do not suite you or already exist in your project. **The library-provided helper functions are not loaded by default**.

Contributing
------------

[](#contributing)

If you have some suggestions how to make this package better, please open an issue or even better, submit a pull request.

Should you want to contribute, please see the development guidelines in the [DataLinx PHP package template](https://github.com/DataLinx/php-package-template).

### Changelog

[](#changelog)

All notable changes to this project are automatically documented in the [CHANGELOG.md](CHANGELOG.md) file using the release workflow, based on the [release-please](https://github.com/googleapis/release-please) GitHub action.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

For all this to work, commit messages must follow the [Conventional commits](https://www.conventionalcommits.org/) specification, which is also enforced by a Git hook.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance63

Regular maintenance activity

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.6% 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 ~113 days

Recently: every ~222 days

Total

10

Last Release

224d ago

Major Versions

v1.2.0 → v2.0.02023-02-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/131700?v=4)[Omer Sabic](/maintainers/SlimDeluxe)[@SlimDeluxe](https://github.com/SlimDeluxe)

---

Top Contributors

[![SlimDeluxe](https://avatars.githubusercontent.com/u/131700?v=4)](https://github.com/SlimDeluxe "SlimDeluxe (97 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![markonovak89](https://avatars.githubusercontent.com/u/3106600?v=4)](https://github.com/markonovak89 "markonovak89 (9 commits)")

---

Tags

libraryphputilitiesphphelpersutilities

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/datalinx-php-utils/health.svg)

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

###  Alternatives

[andreas-glaser/php-helpers

A comprehensive collection of PHP utility functions for array manipulation, string operations, date handling, HTML generation, form building, validation, and more. Modern PHP 8.2+ library with full type safety.

1386.5k2](/packages/andreas-glaser-php-helpers)[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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