tinymvc / laravel-supports
A collection of support classes and functions of Laravel, fine-tuned for TinyMVC/Spark.
v1.0.2
2026-11-10 08:34 UTC
Requires
- php: >=8.2
- psr/clock: ^1.0
Requires (Dev)
None
Suggests
- doctrine/inflector: Required to use Str::plural() and Stringable::plural() (^2.0).
- league/commonmark: Required to use Str::markdown() and Stringable::markdown() (^2.6).
- ramsey/uuid: Required to use Str::uuid() (^4.7).
- voku/portable-ascii: Required for Str::ascii(), Str::slug(), Str::isAscii(), and ASCII validation rules (^2.0).
Provides
None
Conflicts
None
Replaces
None
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, andPluralizerutilitiesCollectionandLazyCollectionStringable,HtmlString, andJs- common helpers such as
collect,data_get,data_set,value, andtap - 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.