Search by

tinymvc / laravel-supports

dev.shahin

A collection of support classes and functions of Laravel, fine-tuned for TinyMVC/Spark.

Package info

github.com/tinymvc/laravel-supports

pkg:composer/tinymvc/laravel-supports

Statistics

Installs: 21

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-11-10 08:34 UTC

This package is auto-updated.

Last update: 2026-11-10 08:35:21 UTC


README

Laravel-inspired support classes and helpers, fine-tuned for TinyMVC / Spark.

Installation

composer require tinymvc/laravel-supports

Requires PHP 8.2 or newer.

Usage

use Spark\Support\Arr;
use Spark\Support\Str;

$names = collect(['taylor', 'laravel'])
    ->map(fn (string $name) => Str::studly($name))
    ->all();

$value = Arr::get(['user' => ['name' => 'Taylor']], 'user.name');

The package provides:

  • Arr, Str, Number, and Pluralizer utilities
  • Collection and LazyCollection
  • Stringable, HtmlString, and Js
  • common helpers such as collect, data_get, data_set, value, and tap
  • support contracts and reusable traits

Optional integrations are available for Markdown, ASCII conversion, UUIDs, and pluralization. See composer.json for the supported packages.

License

Released under the MIT License.