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

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

davispuh/php-utils
==================

PHP Utils

1.0.0(13y ago)120UNLICENSEPHP

Since Jan 21Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Utils
---------

[](#php-utils)

Several PHP functions. Hopefully will be useful for someone...

**Table of Contents**

- [Implemented functions](#implemented-functions)
- [Authors](#authors)
- [Unlicense](#unlicense)
- [Contribute](#contribute)

Implemented functions
---------------------

[](#implemented-functions)

`Utilities.php`

- `Utilities::RemoveDoubleWhitespace($Text)`
- `Utilities::ShiftLeft($Number, $Bits)`
- `Utilities::ShiftRight($Number, $Bits)`
- `Utilities::BitwiseOR($Number1, $Number2)`
- `Utilities::BitwiseAND($Number1, $Number2)`
- `Utilities::BitSet($Number, $Bit)`
- `Utilities::BitClear($Number, $Bit)`
- `Utilities::BitTest($Number, $Bit)`
- `Utilities::GetStrVal($Number)`
- `Utilities::GetIntVal($Number)`
- `Utilities::GetDateTime($DateTime = NULL)`
- `Utilities::ParseDateInterval(\DateInterval $DateInterval)`
- `Utilities::CreateTime($Time)`
- `Utilities::CreateDate($Date)`
- `Utilities::FormatDateInterval($DateInterval)`
- `Utilities::FormatNumber($Number, $Sep = ' ')`
- `Utilities::CompareMax($Number1, $Number2)`
- `Utilities::UIntersectArrayMerge($Array1, $Array2, $CompareFunction)`
- `Utilities::GetValue($Array, $Value1 = NULL, $Value2 = NULL, $Value3 = NULL, $Value4 = NULL)`
- `Utilities::GetOrFirst($Key, $Array)`
- `Utilities::IsValidFQDN($FQDN)`
- `Utilities::ParseURL($URL)`
- `Utilities::ParseQuery($QueryString)`
- `Utilities::GetHost($URL)`
- `Utilities::QueryFirstResult($Result)`
- `Utilities::NormalizeIP($IP)`

Authors
-------

[](#authors)

Currently everything (all functions, files, text) in this repository are made by me @davispuh and I've dedicated this repository to public domain.

Unlicense
---------

[](#unlicense)

All text, documentation, code and files in this repository are in public domain (including this text, README). It means you can copy, modify, distribute and include in your own work/code, even for commercial purposes, all without asking permission.

Contribute
----------

[](#contribute)

Feel free to improve existing functions or add new ones which might be usefull.

**Warning**: By sending pull request to this repository you dedicate any and all copyright interest in pull request (code files and all other) to the public domain. (files will be in public domain even if pull request doesn't get merged)

Also before sending pull request you acknowledge that you own all copyrights or have authorization to dedicate them to public domain.

If you don't want to dedicate code to public domain or if you're not allowed to (eg. you don't own required copyrights) then DON'T send pull request.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

4865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2709b0255effa7e7912085eea01f2aa755c34a90c6bb7d3e9689b0a7bcf787a9?d=identicon)[davispuh](/maintainers/davispuh)

---

Top Contributors

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

---

Tags

functionsutils

### Embed Badge

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

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

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[maciejczyzewski/bottomline

A full-on PHP manipulation utility belt that provides support for working with arrays, objects, and iterables; a lodash or underscore equivalent for PHP.

477631.4k10](/packages/maciejczyzewski-bottomline)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)

PHPackages © 2026

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