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

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

sakshsky/laravel-global-helpers
===============================

Zero-config global helpers for Laravel. Just create `app/Helpers/helpers.php` and start using functions!

00PHP

Since May 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sakshsky/laravel-global-helpers)[ Packagist](https://packagist.org/packages/sakshsky/laravel-global-helpers)[ RSS](/packages/sakshsky-laravel-global-helpers/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

```
# Sakshsky Laravel Global Helpers

[![Latest Version](https://img.shields.io/packagist/v/sakshsky/laravel-global-helpers.svg?style=flat-square)](https://packagist.org/packages/sakshsky/laravel-global-helpers)
[![Total Downloads](https://img.shields.io/packagist/dt/sakshsky/laravel-global-helpers.svg?style=flat-square)](https://packagist.org/packages/sakshsky/laravel-global-helpers)
[![License](https://img.shields.io/packagist/l/sakshsky/laravel-global-helpers.svg?style=flat-square)](https://github.com/sakshsky/laravel-global-helpers/blob/main/LICENSE)

A zero-configuration Laravel package to auto-load global helper functions. Just create `app/Helpers/helpers.php` and start using your functions everywhere—no manual `composer.json` edits required!

---

## Features
- 🚀 **Zero Configuration**: Auto-detects `helpers.php` in `app/Helpers/`.
- 📂 **Starter Template**: Optional pre-built `helpers.php` with common utilities.
- 🔧 **Artisan Command**: Quick setup with `php artisan sakshsky:install-helpers`.
- 💡 **IDE-Friendly**: Works seamlessly with PHPStorm/VSCode autocomplete.

---

## Installation

1. Install via Composer:
   ```bash
   composer require sakshsky/laravel-global-helpers
```

2. **(Optional)** Publish the default `helpers.php` template: ```
    php artisan sakshsky:install-helpers
    ```

    This creates `app/Helpers/helpers.php` with example functions.

---

Usage
-----

[](#usage)

### 1. Create Your Helpers

[](#1-create-your-helpers)

Edit `app/Helpers/helpers.php`:

```
