humweb/thingamabob

This is my package thingamabob
5,162
Install
composer require humweb/thingamabob
Latest Version:0.4
PHP:^8.1
Laravel:8 · 9 · 10 · 12
License:MIT
Last Updated:Aug 20, 2026
Links: GitHub  ·  Packagist
Maintainer: ryun

Thingamabob Widget Manager

run-tests PHPStan Check & fix styling

Installation

You can install the package via composer:

composer require humweb/thingamabob

You can publish and run the migrations with:

php artisan vendor:publish --tag="thingamabob-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="thingamabob-config"

This is the contents of the published config file:

return [
    'route' => '/api/widgets',
    'middleware' => [],
    'assets_path' => resource_path('js/widgets/'),
];

Usage

Register new widget
Widgets::resgister('stats', new StatsWiget());
Writing a widget
class UserWidget extends AbstractWidget implements Widget
{
    public string $title = 'Users';
    public string $component = 'UserWidget';

    public function data(Request $request): Collection
    {
       return User::take(5)->get();
    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

humweb/laravel-widgets

Laravel Widgets package

23,003 0
humweb/inertia-table

Inertia.js table component with sorting, filtering, searching, and multi-table s...

4,661 3
humweb/notification-subscriptions

This is my package notification-subscriptions

1,861 0
humweb/passwordless

This is my package passwordless

5,617 0
humweb/taggables

A powerful and flexible tagging package for Laravel with polymorphic relationshi...

1,844 1

Version History

Version Released PHP Laravel License
0.4 ^8.1 ^8.0|^9.0|^10.0|^12 MIT
0.3 ^8.1 ^8.0|^9.0|^10.0 MIT