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

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

fei77/laravel-helpers
=====================

a helper library for laravel

1.1.1.2(7y ago)1152MITPHPPHP ~5.6|~7.0

Since Mar 6Pushed 6y agoCompare

[ Source](https://github.com/hifisaputra/laravel-helpers)[ Packagist](https://packagist.org/packages/fei77/laravel-helpers)[ Docs](https://github.com/fei77/laravel-helpers)[ RSS](/packages/fei77-laravel-helpers/feed)WikiDiscussions master Synced yesterday

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

LaravelHelpers
==============

[](#laravelhelpers)

[![Latest Version on Packagist](https://camo.githubusercontent.com/82dfe855dc31b0e78ba57f1e83ecbd59136b9f6bcad12679e00c3105b2c17fc1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66656937372f6c61726176656c2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fei77/laravel-helpers)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/5b9655bda7c7d769ec017a933c66f3644eff99e7a4841ef19137bdc9ec627aa2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66656937372f6c61726176656c2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fei77/laravel-helpers)

Install
-------

[](#install)

Via Composer

```
$ composer require hifisaputra/laravel-helpers
```

Usage
-----

[](#usage)

```
// Image helpers
$image = Helpers::image($request->imagefile)

/**
 * Change directory path using laravel's helper functions
 *
 * Parameters:
 * (string) - default (public_path())
 *
 */
$image->path(storage_path())

/**
 * Change the folder path
 *
 * Parameters:
 * (string) - default ('images')
 */
$image->folder('images/profile')

/**
 * Add encoding
 *
 * Parameters:
 * (string) Here's a list of encoding format
 * supported by [Intervention Image](http://image.intervention.io)
 *
 *  jpg — return JPEG encoded image data
 *  png — return Portable Network Graphics (PNG) encoded image data
 *  gif — return Graphics Interchange Format (GIF) encoded image data
 *  tif — return Tagged Image File Format (TIFF) encoded image data
 *  bmp — return Bitmap (BMP) encoded image data
 *  ico — return ICO encoded image data
 *  psd — return Photoshop Document (PSD) encoded image data
 *  webp — return WebP encoded image data
 *  data-url — encode current image data in data URI scheme (RFC 2397)
 *
 * (integer) Define the quality of the encoded image optionally.
 * Data ranging from 0 (poor quality, small file) to 100 (best quality, big file).
 */
$image->encode('jpg', 95)

/**
 * Add prefix to filename
 *
 * Parameters:
 * (string)
 */
$image->prefix('user-')

/**
 * Save the image
 * Return the image's name
 */
$image->save();

dd($image) // '/images/profile/user-5a9d24bb389ae.jpg'

/**
 * Save the image with thumbnail
 * Return an array of the image's name and the thumbnail's name
 */
$image->saveWithThumbnail();

dd($image)
/**
 * [
 *	'originalName' : '/images/profile/user-5a9d24bb389ae.jpg',
 *  'thumbnailName' : '/images/profile/user-5a9d24bb389ae_tn.jpg'
 * ]
 */

// Delete helpers
/**
* Delete file from the given path
* @param $path can be array of strings or just a string.
*/
Helpers::delete($path);

//Config writer
/**
 * Write laravel config file
 *
 * credit: https://github.com/daftspunk/laravel-config-writer
 *
 * @param array
 */
Helpers::config()->write(['app.locale' => 'en']);
```

Example
-------

[](#example)

```
public function store(Request $request)
{
  $blog = new Blog();
  $blog->user_id = Auth::user()->id;
  if ($request->image) {

    $image = Helpers::image($request->image)->folder('images/blogs')->encode('jpg', 80)->saveWithThumbnail();
	  // the image files will be saved inside public/images/blogs

    $blog->originalUrl = $image['originalName'];
    $blog->previewUrl = $image['thumbnailName'];
  }

  $blog->fill($request->translations);
  $blog->save();
}
```

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

[](#contributing)

- [hifisaputra](https://github.com/hifisaputra)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

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 ~24 days

Recently: every ~29 days

Total

7

Last Release

2844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54ac06b03fc45a8f5826f07735d3c85ff33b71f70aea567761919eef6a794661?d=identicon)[hifisaputra](/maintainers/hifisaputra)

---

Top Contributors

[![hifisaputra](https://avatars.githubusercontent.com/u/34701797?v=4)](https://github.com/hifisaputra "hifisaputra (50 commits)")

---

Tags

laravellaravel-helperslaravel-packageLaravelHelpersFei77

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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