PHPackages                             larsmbergvall/utilities-for-laravel - 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. larsmbergvall/utilities-for-laravel

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

larsmbergvall/utilities-for-laravel
===================================

Some utilities and helpers for use in Laravel projects

v1.0.0(6mo ago)0210↓50%MITPHPPHP &gt;=8.3CI passing

Since Oct 23Pushed 6mo agoCompare

[ Source](https://github.com/larsmbergvall/utilities-for-laravel)[ Packagist](https://packagist.org/packages/larsmbergvall/utilities-for-laravel)[ RSS](/packages/larsmbergvall-utilities-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Utilities for Laravel
=====================

[](#utilities-for-laravel)

This is a collection of some utilities that I personally use when developing Laravel applications. Feel free to use them in your own projects!

Usage
=====

[](#usage)

You can publish the action stub with:

```
php artisan vendor:publish --tag=utilities-for-laravel-stubs
```

You can publish the config with:

```
php artisan vendor:publish --tag=utilities-for-laravel-config
```

What is included?
=================

[](#what-is-included)

Make:action command
-------------------

[](#makeaction-command)

`php artisan make:action CreatePost` command that creates an action class \* This would create a `CreatePostAction.cs` - if you don't want the suffix you can disable it in the config file (or change the suffix to something else)

Result class
------------

[](#result-class)

A Result class inspired by Rusts Result type

```
        /** @var Result $result */
//        $result = Result::ok(['value' => 'foo']);
        $result = Result::err('something went wrong');

        $result->match(
            ok: fn(array $data) => dd($data),
            err: fn(string $error) => dd($error)
        );

//        $data = $result->getValue();
        $error = $result->getErr();
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance67

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca3d1db5f7456791074b1f27186dfa46b2c0440de305883f432e090ef9f63fa5?d=identicon)[larsmbergvall](/maintainers/larsmbergvall)

---

Top Contributors

[![larsmbergvall](https://avatars.githubusercontent.com/u/35922396?v=4)](https://github.com/larsmbergvall "larsmbergvall (7 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/larsmbergvall-utilities-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/larsmbergvall-utilities-for-laravel/health.svg)](https://phpackages.com/packages/larsmbergvall-utilities-for-laravel)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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