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.3k↑130.8%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 1mo 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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

1757d 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://www.gravatar.com/avatar/5c875ab5f996be5678de7da1bc0b5fb35d6e9aa87d512afb07df6e4db846d513?d=identicon)[eelcol](/maintainers/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

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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