PHPackages                             m2collective/laravel-value-types - 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. m2collective/laravel-value-types

ActiveLibrary

m2collective/laravel-value-types
================================

0.1.0(today)00MITPHPPHP ^8.3

Since Jul 31Pushed todayCompare

[ Source](https://github.com/m2collective/laravel-value-types)[ Packagist](https://packagist.org/packages/m2collective/laravel-value-types)[ Docs](https://github.com/m2collective/laravel-value-types)[ RSS](/packages/m2collective-laravel-value-types/feed)WikiDiscussions main Synced today

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

Value Types
===========

[](#value-types)

[![Laravel](https://camo.githubusercontent.com/b7d7f1f809065a3b5036471236f67b4679efe59409a65707e57d1a5075c7c8d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531332e302d2532334646324432302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/b7d7f1f809065a3b5036471236f67b4679efe59409a65707e57d1a5075c7c8d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531332e302d2532334646324432302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)[![PHP](https://camo.githubusercontent.com/de35f21ad56b5c00939e1f07ef6d8325bc07c6345bbf91380a05840d38ca523b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d2532333737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/de35f21ad56b5c00939e1f07ef6d8325bc07c6345bbf91380a05840d38ca523b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d2532333737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)

---

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

[](#installation)

You can install the package via composer:

```
composer require m2collective/laravel-value-types
```

The package will automatically register itself.

Usage
-----

[](#usage)

An example of using a package with the facades:

```
use Illuminate\View\View;
use M2Collective\ValueTypes\Contracts\ArrayValue;
use M2Collective\ValueTypes\Contracts\StringValue;
use M2Collective\ValueTypes\Facades\ArrayValue as ArrayValueFacade;
use M2Collective\ValueTypes\Facades\StringValue as StringValueFacade;

final class Example
{
    /**
     * @var ArrayValue
     */
    protected ArrayValue $title;

    /**
     * @var StringValue
     */
    protected StringValue $subtitle;

    /**
     * @param string|null $titleText
     * @param string|null $titleHref
     */
    public function __construct(
        ?string $titleText = null,
        ?string $titleHref = null,
        ?string $subtitle = null
    ) {
        $this->title = ArrayValueFacade::set([
              'href' => $titleHref ?? '#',
              'text' => $titleText ?? 'Text'
        ]);

        $this->subtitle = StringValueFacade::set($subtitle ?? 'Subtitle')
    }

    /**
     * @return View
     */
    public function render(): View
    {
        return view('example', [
            'title' => $this->title,
            'subtitle' => $this->subtitle,
        ]);
    }
}
```

```

    {{ $title->get('text') }}

```

```

    {{ $subtitle->get() }}

```

License
-------

[](#license)

The MIT License (MIT). Please see the [License file](LICENSE.txt) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

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

---

Top Contributors

[![bu0nq](https://avatars.githubusercontent.com/u/67270989?v=4)](https://github.com/bu0nq "bu0nq (41 commits)")

---

Tags

typesvaluem2collective

### Embed Badge

![Health badge](/badges/m2collective-laravel-value-types/health.svg)

```
[![Health](https://phpackages.com/badges/m2collective-laravel-value-types/health.svg)](https://phpackages.com/packages/m2collective-laravel-value-types)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M227](/packages/backpack-crud)[code16/sharp

Laravel Content Management Framework

79266.1k10](/packages/code16-sharp)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3518.3k](/packages/duncanmcclean-statamic-cargo)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21327.3k3](/packages/ecotone-laravel)

PHPackages © 2026

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