PHPackages                             xcopy/laravel-support - 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. xcopy/laravel-support

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

xcopy/laravel-support
=====================

Useful Laravel support utilities.

070PHPCI passing

Since Mar 24Pushed 3mo agoCompare

[ Source](https://github.com/xcopy/laravel-support)[ Packagist](https://packagist.org/packages/xcopy/laravel-support)[ RSS](/packages/xcopy-laravel-support/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Support
===============

[](#laravel-support)

[![GitHub Tests Action Status](https://camo.githubusercontent.com/c1cc99d7956fc315dfa22a838a86deb13d1a670f84628dac7713dc1803af9420/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f78636f70792f6c61726176656c2d737570706f72742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/xcopy/laravel-support/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6038cc2b3ed91ac9410ff0bf1559f9615da72f75c6cf5cba1f0e5d45105ceef3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f78636f70792f6c61726176656c2d737570706f72742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/xcopy/laravel-support/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d1769e09c8ac7c696e578076097c5cae49ae2bba68866c095602cda825d16f10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f78636f70792f6c61726176656c2d737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xcopy/laravel-support)

Useful Laravel support utilities.

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

[](#installation)

```
composer require xcopy/laravel-support:dev-main

```

Features
--------

[](#features)

### Enum Traits

[](#enum-traits)

- **HasLabel** – Generates human-readable labels from enum values
- **HasValues** – Returns array of all enum values
- **HasChoices** – Returns enum cases as value =&gt; label pairs for dropdowns
- **HasStaticCase** – Magic static method access using camelCase only

### Eloquent Casts

[](#eloquent-casts)

- **AsEmailString** – Trims and lowercases email addresses
- **AsModelClass** – Casts to model class name
- **AsTitledString** – Converts to a title case
- **AsTrimmedString** – Trims whitespace

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance55

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/202339?v=4)[Kairat Jenishev](/maintainers/xcopy)[@xcopy](https://github.com/xcopy)

---

Top Contributors

[![xcopy](https://avatars.githubusercontent.com/u/202339?v=4)](https://github.com/xcopy "xcopy (10 commits)")

---

Tags

castsenumslaravelphpsupport

### Embed Badge

![Health badge](/badges/xcopy-laravel-support/health.svg)

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

###  Alternatives

[hazaveh/verify-domain

Verify Domain Ownership with PHP

2310.4k1](/packages/hazaveh-verify-domain)

PHPackages © 2026

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