PHPackages                             anurag/lara-global-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. anurag/lara-global-helper

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

anurag/lara-global-helper
=========================

For string and array related operations

05PHP

Since Mar 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/anurag-vc/lara-global-helper)[ Packagist](https://packagist.org/packages/anurag/lara-global-helper)[ RSS](/packages/anurag-lara-global-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Global Helper
=====================

[](#laravel-global-helper)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![StyleCI](https://camo.githubusercontent.com/63cf9ea39b289cd4bcdabffa5e546d9316202cfc44dc712b3cb8988b3414b7a5/68747470733a2f2f7374796c6563692e696f2f7265706f732f34383531323536312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/48512561)[![Total Downloads](https://camo.githubusercontent.com/4d8dc406aeeb36376f00e5585a5bc48cd7b9b1eec6043ece4818cc6d94e0cec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e757261672f6c6172612d676c6f62616c2d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/anurag/lara-global-helper)

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

[](#installation)

You can install the package via composer:

```
composer require anurag/lara-global-helper
```

Functions
---------

[](#functions)

1. String slug generator
    `generateSlug($string)`
2. Generate Hash String
    `hashString($string)`
3. Clear String
    `cleanString($string)`
4. Add string in existed string
    `addString($string)`
5. Short the string
    `shortString($string)`
6. String Serialization
    `serialize($string)`
7. String Unserialization
    `unserialize($string)`
8. Find String(word) position
    `strposition($string,$word)`
9. Merge 2 arrays
    `array_merge($string,$str1)`
10. Replace last element of string
    `str_replace_last($search, $replace, $subject)`
11. Convert string to an array
    `array_wrap($string)`

License
-------

[](#license)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5efaf446c6f8a8616ce3f4e8cf9bde33f5564d2789d36b4118341ecb37a758d?d=identicon)[anurag-vc](/maintainers/anurag-vc)

---

Top Contributors

[![anurag-viitorcloud](https://avatars.githubusercontent.com/u/60126167?v=4)](https://github.com/anurag-viitorcloud "anurag-viitorcloud (17 commits)")

### Embed Badge

![Health badge](/badges/anurag-lara-global-helper/health.svg)

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

###  Alternatives

[mikemccabe/json-patch-php

Produce and apply json-patch objects

1124.9M7](/packages/mikemccabe-json-patch-php)

PHPackages © 2026

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