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.1.0(1mo ago)0215↓92.9%MITPHPPHP &gt;=8.4CI passing

Since Oct 23Pushed 1mo 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 yesterday

READMEChangelog (2)Dependencies (8)Versions (3)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

43

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~209 days

Total

2

Last Release

43d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.3

v1.1.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35922396?v=4)[Lars Bergvall](/maintainers/larsmbergvall)[@larsmbergvall](https://github.com/larsmbergvall)

---

Top Contributors

[![larsmbergvall](https://avatars.githubusercontent.com/u/35922396?v=4)](https://github.com/larsmbergvall "larsmbergvall (15 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

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9527.8M127](/packages/livewire-flux)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

198321.1k](/packages/fumeapp-modeltyper)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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