PHPackages                             grayphp/helpers - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. grayphp/helpers

ActiveLibrary[HTTP &amp; Networking](/categories/http)

grayphp/helpers
===============

core php helper functions.

v0.3(3y ago)313MITPHPPHP \*

Since Aug 15Pushed 3y ago1 watchersCompare

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

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

Core php helper functions.
--------------------------

[](#core-php-helper-functions)

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

[](#installation)

Install helper-functions with composer

```
  composer require grayphp/helpers
```

Helpers
-------

[](#helpers)

```
array_get:/**
     * Gets a value in an array by dot notation for the keys.
     *
     * @param string $key
     * @param array  $array
     *
     * @return mixed
     */
array_set:/**
     * Sets a value in an array using the dot notation.
     *
     * @param string $key
     * @param mixed  $value
     * @param array  $array
     *
     * @return bool
     */
array_first:/**
     * Returns the first element of an array.
     *
     * @param array $array
     *
     * @return mixed $value
     */
array_last:/**
     * Returns the last element of an array.
     *
     * @param array $array
     *
     * @return mixed $value
     */
to_array:/**
     * Converts a string or an object to an array.
     *
     * @param string|object $var
     *
     * @return array|null
     */
to_object:/**
     * Converts an array to an object.
     *
     * @param array $array
     *
     * @return object|null
     */
is_assoc:/**
     * Detects if the given value is an associative array.
     *
     * @param array $array
     *
     * @return bool
     */
create_captcha:/**
     * Create a captcha image.
     * @return void
     */
validate_captcha:/**
     * Validate a captcha image.
     * @param string $userInput
     * @return bool
     */
```

![MIT License](https://camo.githubusercontent.com/7c124530b7c185c6928998842a1a52ed4bfd21071bf67db8f325f470cc3160a3/68747470733a2f2f696d672e736869656c64732e696f2f61706d2f6c2f61746f6d69632d64657369676e2d75692e7376673f)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

1368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f105c052f656f7c2112aecc80fdf15a0728181083b7cd8ad01c099b1ceacb201?d=identicon)[developersharif](/maintainers/developersharif)

---

Top Contributors

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

---

Tags

httpurlphpjsonhelperhelpersmysqlfilesfunctionfunctionsextendednumbersarraysdirectoriescharactersphp helper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grayphp-helpers/health.svg)

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

###  Alternatives

[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[duzun/hquery

An extremely fast web scraper that parses megabytes of HTML in a blink of an eye. No dependencies. PHP5+

363146.3k4](/packages/duzun-hquery)[datto/json-rpc-http

HTTP client and server for JSON-RPC 2.0

66525.9k5](/packages/datto-json-rpc-http)[josantonius/url

PHP library to access URL information.

123.2k2](/packages/josantonius-url)

PHPackages © 2026

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