javaabu / widgets
WordPress classic-style widgets for Laravel: widget classes with javaabu/stencil settings rendered in Blade and React, developer-defined locations, and Blade or Inertia React pages where admins add, order, configure and remove widgets
dev-main / 1.x-dev
2026-11-10 09:59 UTC
Requires
- php: ^8.4
- illuminate/cache: ^12.0 || ^13.0
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/database: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/routing: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- illuminate/validation: ^12.0 || ^13.0
- illuminate/view: ^12.0 || ^13.0
- javaabu/forms: ^2.0@dev
- javaabu/manifest: ^1.0@dev
- javaabu/permissions: ^3.0@dev
- javaabu/stencil: ^1.0@dev
Requires (Dev)
- inertiajs/inertia-laravel: ^2.0
- javaabu/boost-javaabu-guidelines: ^1.4
- javaabu/translatable: ^3.0@dev
- laravel/pint: ^1.24
- orchestra/testbench: ^10.0 || ^11.0
- phpunit/phpunit: ^11.5.3 || ^12.5.8
Suggests
- inertiajs/inertia-laravel: Renders the widget pages with Inertia React when widgets.views is inertia (^2.0)
- javaabu/translatable: One value per language for translatable widget settings (^3.0)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-15 10:55:02 UTC
README
WordPress classic-style widgets for Laravel. A widget is a class: its settings are a javaabu/stencil form and it renders with a Blade view and a React component. Developers define where widgets go (sidebars, footers); admins add, order, configure and remove them.
- Widget locations rendered with
<x-widgets::location name="sidebar" />or<WidgetLocation widgets={…} />. - Built-in Text, Image and Link widgets, with the same markup in Blade and React.
- Admin pages from
Route::widgets(), in Blade or Inertia React, with keyboard-accessible drag and drop. - A policy and permissions through javaabu/permissions, for any guard and user model.
- Dhivehi and RTL; translatable settings with javaabu/translatable.
use Javaabu\Widgets\Facades\Widgets; // AppServiceProvider::boot() Widgets::register(RecentPostsWidget::class); Widgets::location('sidebar', fn () => __('Sidebar'))->max(6); // routes/web.php Route::widgets(['guard' => 'web_admin', 'prefix' => 'admin/widgets', 'name' => 'admin.widgets']);
<x-widgets::location name="sidebar" />
Documentation
See the docs, or llms.txt for AI assistants.
License
The MIT License (MIT). See License File.