laravilt/support
Foundation package providing base components, utilities, and contracts for all Laravilt packages. Build custom components with 13+ reusable traits, Get/Set utilities, and multi-platform serialization support.
1,609
| Install | |
|---|---|
composer require laravilt/support |
|
| Latest Version: | 1.1.0 |
| PHP: | ^8.3|^8.4 |
| Laravel: | 10 – 13 |
| License: | MIT |
| Last Updated: | Sep 17, 2026 |
| Links: | GitHub · Packagist |
Maintainer: fadymondy

Laravilt Support
Foundation package providing base components, utilities, and contracts for all Laravilt packages. Build custom components with reusable traits, utilities, and base classes.
Features
- 🏗️ Base Component - Foundation for all UI components
- 🎨 Concerns - 11+ reusable component behaviors (traits)
- 🛠️ Utilities - Get, Set, Str, Arr helpers
- 📝 Contracts - Interfaces for consistent implementations
- 🔄 Serialization - Multi-platform support
Available Traits
| Trait | Description |
|---|---|
CanBeDisabled |
Enable/disable component state |
CanBeHidden |
Conditional visibility control |
HasActions |
Action button support |
HasColor |
Color theming (primary, success, danger, etc.) |
HasDescription |
Description/helper text |
HasIcon |
Icon display support |
HasId |
Unique identifier management |
HasLabel |
Label configuration |
HasName |
Name attribute handling |
HasPlaceholder |
Placeholder text |
InteractsWithState |
State management utilities |
Quick Example
use Laravilt\Support\Component;
use Laravilt\Support\Concerns\HasLabel;
use Laravilt\Support\Concerns\HasIcon;
use Laravilt\Support\Concerns\HasColor;
class MyComponent extends Component
{
use HasLabel;
use HasIcon;
use HasColor;
public static function make(string $name): static
{
return app(static::class, ['name' => $name]);
}
}
// Usage
MyComponent::make('action')
->label('Click Me')
->icon('plus')
->color('primary');
Utilities
use Laravilt\Support\Get;
use Laravilt\Support\Set;
use Laravilt\Support\Str;
// Dot notation access
Get::value($array, 'nested.key', 'default');
Set::value($array, 'nested.key', 'value');
// String utilities
Str::slug('My Component'); // 'my-component'
Installation
composer require laravilt/support
Generator Command
php artisan make:component RatingInput
Documentation
- Complete Documentation - Base components, concerns, utilities
- MCP Server Guide - AI agent integration
License
The MIT License (MIT). Please see License File for more information.
Related Packages
ca-santos/laravel-support
General-purpose, domain-organized helper library for Laravel applications
2,906
1
pixielity/laravel-foundation
Pixielity Foundation module for Laravel. Provides utilities, enums, exceptions,...
5
0
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.1.0 | ^8.3| | MIT | |
| 1.0.5 | ^8.3| | MIT | |
| 1.0.4 | ^8.3| | MIT | |
| 1.0.3 | ^8.3| | MIT | |
| 1.0.2 | ^8.3| | MIT | |
| 1.0.1 | ^8.3| | MIT | |
| 1.0.0 | ^8.3| | MIT |