PHPackages                             hyder/laravel-utils - 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. hyder/laravel-utils

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

hyder/laravel-utils
===================

Utilities for Laravel applications, including various helpful features such as zip file creation, enum handling, and more.

0.0.1(2y ago)08MITPHPPHP ^7.3|^8.0

Since May 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abhihyder/laravel-utils)[ Packagist](https://packagist.org/packages/hyder/laravel-utils)[ RSS](/packages/hyder-laravel-utils/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Utils
=============

[](#laravel-utils)

Utilities for Laravel applications, including various helpful features such as zip file creation, enum handling, and more.

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

[](#installation)

You can install the package via Composer:

```
composer require hyder/laravel-utils
```

Configuration
-------------

[](#configuration)

After installing the package, you can publish the configuration file using Artisan:

```
php artisan vendor:publish --tag=laravel-utils-config
```

This will publish the configuration file `laravel-utils.php` to your `config` directory.

### Configuration Options

[](#configuration-options)

The configuration file allows you to customize the behavior of the package:

```
// config/laravel-utils.php

return [
    'enums' => [
        // Directory path where enum classes are located
        'dir_path' => app_path('Enums'),

        // Namespace for enum classes
        'namespace' => 'App\Enums',
    ],
];
```

You can adjust the `dir_path` and `namespace` values to match your application's structure.

Usage
-----

[](#usage)

### Enum Facade

[](#enum-facade)

The `Enum` facade allows you to work with enums in your Laravel application.

#### Listing Enums

[](#listing-enums)

You can list all available enums using the `list` method:

```
$enums = Enum::list();
```

This will return an array containing the constants of all enums.

#### Setting Directory and Namespace

[](#setting-directory-and-namespace)

You can set the directory and namespace for enums using the `setDirectory` and `setNamespace` methods, respectively before calling `list` method.

```
use Hyder\LaravelUtils\Facades\Enum;

Enum::setDirectory('path/to/enums')
->setNamespace('App\Enums')
->list();
```

License
-------

[](#license)

Laravel Utils is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Unknown

Total

1

Last Release

778d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55033824?v=4)[Tofayel Hyder Abhi](/maintainers/abhihyder)[@abhihyder](https://github.com/abhihyder)

---

Tags

laravellaravel-utilshyder

### Embed Badge

![Health badge](/badges/hyder-laravel-utils/health.svg)

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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