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

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

shetabit/helper
===============

This Package helps developers to work with custom helpers

v1.3(7y ago)424PHPPHP &gt;=7.0

Since Mar 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/shetabit/helper)[ Packagist](https://packagist.org/packages/shetabit/helper)[ RSS](/packages/shetabit-helper/feed)WikiDiscussions master Synced 3d ago

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

Helper
======

[](#helper)

### This Package helps developers to work with custom helpers.

[](#this-package-helps-developers-to-work-with-custom-helpers)

[![Maintainability](https://camo.githubusercontent.com/4e5287db0cf5a06afb7a98d7a00299b1a6a98fedd05c37c75176996573fd2b0a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343838343031353061383364633561666538352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/shetabit/helper/maintainability)[![StyleCI](https://camo.githubusercontent.com/2205d75fe32dd272dd7fb32d33b5ff66c6cec7f1b277cc7f7c286941ddde6f54/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137323737353630312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/172775601)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0d14acb3df98567c351a231dbe9f32462f49399b8096ca960e3dd659e3d393e1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73686574616269742f68656c7065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/shetabit/helper/?branch=master)

### Installation

[](#installation)

Require this package with composer:

```
composer require shetabit/helper

```

Laravel &gt;=5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php:

```
  Shetabit\Helper\HelperServiceProvider::class,
```

If you want to use the facade, add this to your facades in app.php:

```
  'Helper' => Shetabit\Helper\Facades::class,
```

### List of helpers

[](#list-of-helpers)

- [Random Password](#random-password)
- [Persian Slug](#persian-slug)
- [Persian To English Numbers](#persian-to-english-numbers)
- [Remove Comma](#remove-comma)
- [Jalali To Gregorian](#jalali-to-gregorian)
- [Mb Json Encode](#mb-json-encode)

### Random Password

[](#random-password)

Generate random password. $availableSets parameter: 'l' =&gt; lowercase alphabets, 'u' =&gt; uppercase, 'd' =&gt; digits, 's' =&gt; symbols

```
  ...randomPassword(int $length = 9, string $availableSets = 'luds');

  Helper::randomPassword(); //Output: '9nZnE%3wB'
  //Or
  random_password(); //Output: '9nZnE%3wB'
```

### Persian Slug

[](#persian-slug)

Generate persian slug.

```
  ...persianSlug(string $string, string $separator = '-')

  Helper::persianSlug('ایران سرای من'); //Output: 'ایران-سرای-من'
  //Or
  persian_slug('ایران سرای من'); //Output: 'ایران-سرای-من'
```

### Persian To English Numbers

[](#persian-to-english-numbers)

Convert all Persian(Farsi) numbers to English.

```
  ...faToEnNums(string $number)

  Helper::faToEnNums('۵۶89٤٦'); //Output: '568946'
  //Or
  fa_to_en_nums('۵۶89٤٦'); //Output: '568946'
```

### Remove Comma

[](#remove-comma)

Remove comma's from value.

```
  ...removeComma(string $value)

  Helper::removeComma('5000,000'); //Output: '5000000'
  //Or
  remove_comma('5000,000') //Output: '5000000'
```

### Jalali To Gregorian

[](#jalali-to-gregorian)

Convert jalali date to gregorian date.

```
  ...toGregorian(string $jDate)

  Helper::toGregorian('1397/12/11'); //Output: '2018/3/2'
  //Or
  to_gregorian('1397/12/11') //Output: '2018/3/2'
```

### Mb Json Encode

[](#mb-json-encode)

json\_encode() for multibyte characters.

```
  ...mbJsonEncode(array $input)

  Helper::mbJsonEncode(['name' => 'علی', 'family' => 'حمزه ای']); //Output: '{"name":"علی","family":"حمزه ای"}'
  //Or
  mb_json_encode(['name' => 'علی', 'family' => 'حمزه ای']) //Output: '{"name":"علی","family":"حمزه ای"}'
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% 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 ~2 days

Total

3

Last Release

2626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d73b855df70ba50a46d879126a3f32fb173d12ca3e778e0a72b7398cbef8a26?d=identicon)[shetabit](/maintainers/shetabit)

---

Top Contributors

[![hamog](https://avatars.githubusercontent.com/u/11465084?v=4)](https://github.com/hamog "hamog (26 commits)")[![AliN11](https://avatars.githubusercontent.com/u/16048964?v=4)](https://github.com/AliN11 "AliN11 (1 commits)")

---

Tags

helperslaravellaravelhelperhelpers

### Embed Badge

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

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

###  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)[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)
