PHPackages                             grooveland/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. grooveland/helpers

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

grooveland/helpers
==================

Set of helpers to simplify the workflow

v1.0(7y ago)2781MITPHP

Since Jul 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/thegrooveland/laravel-helpers)[ Packagist](https://packagist.org/packages/grooveland/helpers)[ RSS](/packages/grooveland-helpers/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

Laravel settings wrapper
========================

[](#laravel-settings-wrapper)

This package allows you to manage settings in a database.

The settings are handled by groups and types of data (string, boolean, integer, double, array)

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

[](#installation)

### Laravel

[](#laravel)

This package can be used in Laravel 5.4 or higher.

You can install via composer:

```
composer require grooveland/helpers

```

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in config/app.php file:

```
'providers' => [
    // ...
    \Grooveland\Helpers\HelperServiceProvider::class,
];

```

Usage
-----

[](#usage)

this is a list of the default Helpers

### Array

[](#array)

```
/**
 * Transform an stdClass, object with toArray method
 * or simple var into array, the parameter is passed by reference
 *
 * @param &$data
 * @return void
 */
to_array(&$data)

```

### Objects

[](#objects)

```
/**
 * Check if $value is a instance of Eloquent Collection
 *
 * @param any $value
 * @return bool
 */
is_collection($value)

/**
 * Transform an array, object with Object method
 * or simple var into stdClass, the parameter is passed by reference
 *
 * @param $data
 * @return void
 */
to_obj(&$data)

```

### Numbers

[](#numbers)

```
/**
 * Format number
 *
 * @param $number
 * @param string $thousandSeparator
 * @param string $decimalPoint
 * @param int $decimals
 * @return string
 */
format_number($number, string $thousandSeparator = '.', string $decimalPoint = ',', int $decimals = 2)

```

### Strings

[](#strings)

```
/**
 * Truncate a string by a max of chars, optionally can add HTML  entities, preserve tags and add ellipsis
 *
 * @param string $string
 * @param int $max
 * @param int $start
 * @param bool $addHtmlEntities
 * @param bool $cleanTags
 * @param bool $ellipsis
 * @return string
 */
str_truncate(string $string, int $max, int $start = 0, bool $addHtmlEntities = false, bool $cleanTags = true, bool $ellipsis = true) : string

/**
 * Replace the first coincidence in a string
 *
 * @param string $from
 * @param string $to
 * @param string $content
 * @return string
 */
function str_replace_first(string $from, string $to, string $content)

```

Contributing
------------

[](#contributing)

Comming soon.

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Alejandro de tovar](https://github.com/venespana)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

2848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ecc7c6aba5e7ebf971b6318553b435f728bb17eae8b3f28c5de53bbfc7de7ac?d=identicon)[grooveland](/maintainers/grooveland)

---

Top Contributors

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

---

Tags

helperslaravellaravel-5-packagelaravel-frameworklaravel-packagelaravel5php

### Embed Badge

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

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

###  Alternatives

[grrr-amsterdam/garp-functional

Utility library embracing functional programming paradigms.

32116.1k5](/packages/grrr-amsterdam-garp-functional)

PHPackages © 2026

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