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

ActiveLibrary

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 1y 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 1mo ago

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

19

—

LowBetter than 10% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity35

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

732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fb98d8b7606987af9dc221ddb38c6031b28c6d60257d028f2117072e298b103?d=identicon)[abhihyder](/maintainers/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

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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