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

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

pentacore/laravel-utils
=======================

A collection of commonly used Laravel utilities, traits, and helpers.

v1.0.3(1mo ago)13↓100%[3 PRs](https://github.com/pentacore/laravel-utils/pulls)MITPHPPHP ^8.3 || ^8.4 || ^8.5CI passing

Since May 7Pushed 3w agoCompare

[ Source](https://github.com/pentacore/laravel-utils)[ Packagist](https://packagist.org/packages/pentacore/laravel-utils)[ Docs](https://github.com/pentacore/laravel-utils)[ RSS](/packages/pentacore-laravel-utils/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (9)Versions (8)Used By (0)

laravel-utils
=============

[](#laravel-utils)

A collection of commonly used Laravel utilities, traits, and helpers.

Requirements
------------

[](#requirements)

- PHP `^8.3`
- Laravel `^11.0 || ^12.0 || ^13.0`

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

[](#installation)

```
composer require pentacore/laravel-utils
```

The service provider is auto-discovered.

Utilities
---------

[](#utilities)

### `EnumUtils` trait

[](#enumutils-trait)

Adds a set of helpers to any backed enum.

```
use Pentacore\LaravelUtils\Concerns\EnumUtils;

enum Status: string
{
    use EnumUtils;

    case Active = 'active';
    case Pending = 'pending';
    case Archived = 'archived';
}
```

MethodDescription`Status::names()`Array of case names.`Status::values()`Array of backing values.`Status::array()`Associative array `[value => name]`.`Status::validationRule()``Rule::in(values)` for use in form requests / validators.`Status::iterator()``Generator` keyed by case name.`Status::mapForSelect($withNull, $labelKey)`Sorted `[label, value]` list for select dropdowns.`Status::commaSeparatedValues()`Comma-separated string of values.`$case->asSlug()`URL-friendly slug of the value.`$case->toString()`Value cast to string.`$case->equals($value)`Strict comparison of value.If a case implements a `label()` method, `mapForSelect()` will use it instead of the case name.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~0 days

Total

4

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c81d33fb4c03952a1bf5b52d0ce4ce3ae47f970ede413387fd9c0aff84391ce?d=identicon)[pentacore](/maintainers/pentacore)

---

Top Contributors

[![pentacore](https://avatars.githubusercontent.com/u/2103945?v=4)](https://github.com/pentacore "pentacore (20 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (9 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelenumhelpersutilitiestraitsconcerns

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76318.2M110](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k72](/packages/moonshine-moonshine)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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