PHPackages                             sidfate/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sidfate/helpers

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

sidfate/helpers
===============

some common and useful helpers

1.0.0(8y ago)015MITPHPPHP &gt;=5.4.0

Since Jul 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Sidfate/helpers)[ Packagist](https://packagist.org/packages/sidfate/helpers)[ Docs](https://github.com/Sidfate/helpers)[ RSS](/packages/sidfate-helpers/feed)WikiDiscussions master Synced 4d ago

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

Helpers [![Build Status](https://camo.githubusercontent.com/948655bbc3e25d056b3ab2202d91f4f76cb1abf3ee2bf028ea171c6b35804f06/68747470733a2f2f7472617669732d63692e6f72672f536964666174652f68656c706572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Sidfate/helpers)
====================================================================================================================================================================================================================================================================================

[](#helpers-)

Some common and useful helpers in PHP

Install
=======

[](#install)

```
composer require sidfate/helpers
composer require sidfate/helpers:dev-master

```

Usage
=====

[](#usage)

### Arr

[](#arr)

array functions.

```
use Helpers\Arr;

// Get the first value.
Arr::first(array $arr);

// Get the last value.
Arr::last(array $arr);

// Get the value if not exists return the default.
Arr::get(array $arr, $key, $default = null);

// Transform a array into object.
Arr::toObject(array $arr);

// Flatten a multi-dimensional array to a one-dimensional array.
Arr::flat(array $arr);

// Pluck the given key's value from a two-dimensional array.
Arr::pluck(array $arr, $key);

```

### Str

[](#str)

string functions.

```
use Helpers\Str;

// Change the str to camel case.
Str::camel($str);

// * Get the limited str.
Str::limit($str, $length=50, $end="...");

```

### Verify

[](#verify)

verification functions.

```
use Helpers\Verify;

// Verify is a valid email address
Verify::isEmail($email)

// Verify is a valid ip address
Verify::isIp($ip)

// Verify is a valid url
Verify::isUrl($url)

```

### Http

[](#http)

http functions.

```
use Helpers\Http;

// Get all HTTP headers
Http::getHeaders();

// Get the header value
Http::getHeader($key);

```

License
=======

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a19d3f2ae1831bbd38c40c6cfecc7d4237cf00fee2852c2181c2c995923b1b6?d=identicon)[Sidfate](/maintainers/Sidfate)

---

Top Contributors

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

---

Tags

helper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[laravelista/ekko

Framework agnostic PHP package for marking navigation items active.

278673.4k4](/packages/laravelista-ekko)[beste/json

A simple JSON helper to decode and encode JSON

4222.7M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)

PHPackages © 2026

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