PHPackages                             nscps/php-functions - 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. nscps/php-functions

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

nscps/php-functions
===================

Functions that do not deserve a class or component. Not yet.

1.0.0(3y ago)07MITPHPPHP &gt;=8.1

Since Oct 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nscps/php-functions)[ Packagist](https://packagist.org/packages/nscps/php-functions)[ Docs](https://github.com/nscps/php-functions)[ RSS](/packages/nscps-php-functions/feed)WikiDiscussions main Synced 1mo ago

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

Nscps / PHP Functions
=====================

[](#nscps--php-functions)

Functions that do not deserve a class or component. Not yet. :)

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

[](#installation)

`composer require nscps/php-functions`

Functions
---------

[](#functions)

- Array
    - array\_key\_replace
    - array\_most\_frequent\_element
    - array\_subsets
    - array\_value\_recursive
    - array\_value\_replace
    - natural\_implode
- Color
    - basic\_html\_color\_names
    - hex\_to\_html\_color\_name
    - hex\_to\_rgb
    - html\_color\_name\_to\_rgb
    - html\_color\_name\_to\_hex
    - html\_color\_names
    - is\_basic\_html\_color\_name
    - is\_hex\_color
    - is\_html\_color\_name
    - is\_rgb\_color
    - rgb\_to\_hex
    - rgb\_to\_html\_color\_name
- Converter
    - Temperature
        - celsius\_to\_fahrenheit
        - celsius\_to\_kelvin
        - fahrenheit\_to\_celsius
        - fahrenheit\_to\_kelvin
        - kelvin\_to\_celsius
        - kelvin\_to\_fahrenheit
    - Time
        - hour\_to\_second
        - minute\_to\_second
        - month\_to\_second
        - quarter\_to\_second
        - week\_to\_second
        - year\_to\_second
- Expression
    - remove\_extra\_parenthesis
- Math
    - lcd (alias for `lowest_common_denominator`)
    - gcd (alias for `greatest_common_divisor`)
    - is\_prime
    - most\_significant\_bit
    - most\_significant\_bit\_exponent
    - prime\_numbers
- Random
    - random\_char
    - random\_password
    - random\_string
- String
    - is\_palindrome
    - remove\_extra\_spaces
    - replace\_special\_chars
- Utility
    - swap

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

1318d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65afdceff66eba436390f0041cd197dfef88b72f96a719e11477c315eb797ebb?d=identicon)[nilosoares](/maintainers/nilosoares)

---

Top Contributors

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

---

Tags

phphelpersfunctionsutilities

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nscps-php-functions/health.svg)

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

###  Alternatives

[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[illuminated/helper-functions

Laravel-specific and pure PHP Helper Functions.

107586.6k7](/packages/illuminated-helper-functions)[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)
