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

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

blok/utils
==========

A series of utilites functions for PHP

1.2.1(3y ago)07.8k↓33.3%4MITPHP

Since Mar 16Pushed 3y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (9)Used By (4)

Utilities for Array, String, and common PHP manipulations
=========================================================

[](#utilities-for-array-string-and-common-php-manipulations)

[![Packagist](https://camo.githubusercontent.com/fd50dd16fb0155e2f1be6916a4df3d3fd2ecf67a75644c0374e11192f05fd104/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c6f6b2f7574696c732e737667)](https://packagist.org/packages/blok/utils)[![Packagist](https://camo.githubusercontent.com/fd3e6215a1fa771a646575929965fa411d4a763613b4dc3ad4828e3d812577c1/68747470733a2f2f706f7365722e707567782e6f72672f626c6f6b2f7574696c732f642f746f74616c2e737667)](https://packagist.org/packages/blok/utils)[![Packagist](https://camo.githubusercontent.com/e81ed407d202eceab2e0fda3f5fbfcebc6c2e0ab756e700f44f591a381cf0a1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626c6f6b2f7574696c732e737667)](https://packagist.org/packages/blok/utils)

Utilities script for PHP projects

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

[](#installation)

Install via composer

```
composer require blok/utils
```

Usage
-----

[](#usage)

Arr
===

[](#arr)

Blok\\Utils\\Arr is a bunch of array related methods utilities that you can use as static call exemple :

`Blok\Utils\Arr::csvToArray('xxx.csv')`

Will transform a csv file to an array

Str
===

[](#str)

Blok\\Utils\\Str is a bunch of String related methods utilities that you can use as static call exemple :

`Str::smrtr('{hello} world', ["hello", "Hello"])`

Will replace the braced {hello} with the value of the array

Utils
=====

[](#utils)

Blok\\Utils\\Utils is a bunch of common PHP utils methods that you can use as static call exemple :

`Utils::getJSON("xxx.json"")`

Will make a file\_get\_contents + a json\_decode

`Utils::removeSubfolder($your_dir, ".git"")`

Will remove all the .git folder.

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

Credits
-------

[](#credits)

- [daniel@cherrypulp.com](https://github.com/blok/utils)
- [All contributors](https://github.com/blok/utils/graphs/contributors)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~33 days

Total

7

Last Release

1428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1101ec94cf1b13e3ff6d2a0c4fab68e1916eeec958044ed505ba8da80c8ee4f?d=identicon)[daniel\_sum](/maintainers/daniel_sum)

![](https://avatars.githubusercontent.com/u/53942188?v=4)[Cherry Pulp](/maintainers/cherrypulp)[@cherrypulp](https://github.com/cherrypulp)

---

Tags

phputilitiesBlok

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/blok-utils/health.svg)](https://phpackages.com/packages/blok-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)

PHPackages © 2026

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