PHPackages                             sframe/helper - 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. sframe/helper

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

sframe/helper
=============

helper component

06PHP

Since Dec 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/SIBPHP/Helper)[ Packagist](https://packagist.org/packages/sframe/helper)[ RSS](/packages/sframe-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Helper
======

[](#helper)

Useful libraries.

Installation
============

[](#installation)

```
composer require "sframe/helper:dev-master"
```

Arr
===

[](#arr)

Array helper, extended from laravel Illuminate\\Support\\Arr

Arr Methods
===========

[](#arr-methods)

```
Arr::
    // Add an element to an array using "dot" notation if it doesn't exist.
    add($array, $key, $value)

    // Build a new array using a callback.
    build($array, Closure $callback)

    // Divide an array into two arrays. One with keys and the other with values.
    divide($array)

    // Flatten a multi-dimensional associative array with dots.
    dot($array, $prepend = '')

    // Get all of the given array except for a specified array of items.
    except($array, $keys)

    // Fetch a flattened array of a nested array element.
    fetch($array, $key)

    // Return the first element in an array passing a given truth test.
    first($array, $callback, $default = null)

    // Return the last element in an array passing a given truth test.
    last($array, $callback, $default = null)

    // Flatten a multi-dimensional array into a single level.
    flatten($array)

    // Remove one or many array items from a given array using "dot" notation.
    forget(&$array, $keys)

    // Get an item from an array using "dot" notation.
    get($array, $key, $default = null)

    // Get a subset of the items from the given array.
    only($array, $keys)

    // Pluck an array of values from an array.
    pluck($array, $value, $key = null)

    // Get a value from the array, and remove it.
    pull(&$array, $key, $default = null)

    // Set an array item to a given value using "dot" notation.
    set(&$array, $key, $value)

    // Sort the array using the given Closure.
    sort($array, Closure $callback)

    // Filter the array using the given Closure.
    where($array, Closure $callback)
```

Str
===

[](#str)

String helper, extended from laravel Illuminate\\Support\\Str

\#Str Methods

```
Str::
    // Transliterate a UTF-8 value to ASCII.
    ascii($value)

    // Convert a value to camel case.
    camel($value)

    // Determine if a given string contains a given substring.
    contains($haystack, $needles)

    // Determine if a given string ends with a given substring.
    endsWith($haystack, $needles)

    // Cap a string with a single instance of a given value.
    finish($value, $cap)

    // Determine if a given string matches a given pattern.
    is($pattern, $value)

    // Return the length of the given string.
    length($value)

    // Limit the number of characters in a string.
    limit($value, $limit = 100, $end = '...')

    // Convert the given string to lower-case.
    lower($value)

    // Limit the number of words in a string.
    words($value, $words = 100, $end = '...')

    // Parse a Class@method style callback into class and method.
    parseCallback($callback, $default)

    // Get the plural form of an English word.
    plural($value, $count = 2)

    // Generate a more truly "random" alpha-numeric string.
    random($length = 16)

    // Generate a "random" alpha-numeric string.
    quickRandom($length = 16)

    // Convert the given string to upper-case.
    upper($value)

    // Convert the given string to title case.
    title($value)

    // Get the singular form of an English word.
    singular($value)

    // Generate a URL friendly "slug" from a given string.
    slug($title, $separator = '-')

    // Convert a string to snake case.
    snake($value, $delimiter = '_')

    // Determine if a given string starts with a given substring.
    startsWith($haystack, $needles)

    // Convert a value to studly caps case.
    studly($value)
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sframe-helper/health.svg)

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

PHPackages © 2026

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