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(2mo ago)13[5 PRs](https://github.com/pentacore/laravel-utils/pulls)MITPHPPHP ^8.3 || ^8.4 || ^8.5CI passing

Since May 7Pushed 1mo 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 3w ago

READMEChangelog (3)Dependencies (9)Versions (12)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

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

78d 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

3345.3M347](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.4M2.4k](/packages/flarum-core)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

20720.5k4](/packages/sandermuller-laravel-fluent-validation)

PHPackages © 2026

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