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

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

eelcol/laravel-helpers
======================

Laravel helper functions.

1.1.1(4y ago)05.5k↓50%MITPHPPHP ^7.3.0|^8.0

Since Nov 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/eelcol/laravel-helpers)[ Packagist](https://packagist.org/packages/eelcol/laravel-helpers)[ RSS](/packages/eelcol-laravel-helpers/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Added macro's
=============

[](#added-macros)

Uploaded file
-------------

[](#uploaded-file)

- Directly save an uploaded file to the cloud. A new method `saveToCloud` is added to `Illuminate\Http\UploadedFile`.

`string saveToCloud(string $folder, string $disk = null)`

This method returns the URL of the file. When the file is saved to a local disk, a relative path is returned in stead of a complete URL.

Helper functions:
=================

[](#helper-functions)

- safe\_array(array, ...keys) Retrieve a key from the array, when you do not know for sure that $array is really an array. Can be used with multiple levels: safe\_array(array, level1, level2, etc)
- safe\_in\_array(val, array) Check if a value is in array, when you do not know for sure that $array is an array
- id\_in\_collection(id, collection) Check if an ID is present in a Eloquent collection
- error(msg) Present an error message
- success(msg) Present a success message
- display\_messages() Display the messages in HTML. In Blade, use: {!! display\_messages() !!}
- display\_success(msg) Directly display a message in HTML. In Blade, use: {!! display\_success('text') !!}
- display\_error(msg) Directly display a message in HTML. In Blade, use: {!! display\_error('text') !!}

Messages can also be added by setting a session with key 'status'. This message will be printed as a success message.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Every ~64 days

Total

5

Last Release

1803d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.1.0

1.1.0PHP ^7.3.0

1.1.1PHP ^7.3.0|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9012901?v=4)[eelcol](/maintainers/eelcol)[@eelcol](https://github.com/eelcol)

---

Top Contributors

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

---

Tags

laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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