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

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

carry0987/utils
===============

This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.

1.1.1(3mo ago)01783MITPHPPHP &gt;=8.0CI passing

Since Apr 4Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/carry0987/PHP-Utils)[ Packagist](https://packagist.org/packages/carry0987/utils)[ RSS](/packages/carry0987-utils/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (3)

PHP-Utils
=========

[](#php-utils)

[![Packgist](https://camo.githubusercontent.com/ad63e8e3f14fa86d5efd20551031374cfa5303500d775aedd7dde61f4181810f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361727279303938372f7574696c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carry0987/utils)[![CI](https://github.com/carry0987/PHP-Utils/actions/workflows/CI.yml/badge.svg)](https://github.com/carry0987/PHP-Utils/actions/workflows/CI.yml/badge.svg)
This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.

Features
--------

[](#features)

- Array manipulation and ordering
- String handling and sanitization
- Date-time formatting and conversions
- File and directory path normalization
- URL manipulation and redirection
- Custom HTTP headers setting
- Query parameter handling
- Input validation and filtering

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

[](#installation)

This library can be easily installed via Composer. Run the following command to add it to your project:

```
composer require carry0987/utils
```

Usage
-----

[](#usage)

Utilize the static methods provided by the `Utils` class in your code without instantiating the class. Here's an example on how to use the array sorting feature:

```
use carry0987\Utils\Utils;

$array = [
    ['id' => 3, 'name' => 'Alice'],
    ['id' => 1, 'name' => 'Charlie'],
    ['id' => 2, 'name' => 'Bob'],
];

$sortedArray = Utils::sortData($array, 'ASC', 'id');
print_r($sortedArray);
```

For more detailed information on each method, refer to the inline comments in the source code.

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

[](#contributing)

Contributions, issues, and feature requests are welcome. Feel free to check the issues page if you want to contribute.

License
-------

[](#license)

This project is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance81

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

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

Recently: every ~159 days

Total

12

Last Release

103d ago

PHP version history (2 changes)1.0.0PHP &gt;=8

1.0.8PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12984973?v=4)[carry0987](/maintainers/carry0987)[@carry0987](https://github.com/carry0987)

---

Top Contributors

[![carry0987](https://avatars.githubusercontent.com/u/12984973?v=4)](https://github.com/carry0987 "carry0987 (28 commits)")

---

Tags

php8psr-4

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[miloschuman/yii-highcharts

Highcharts adapter for the Yii Framework

3380.7k](/packages/miloschuman-yii-highcharts)

PHPackages © 2026

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