New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
55
Install
composer require javaabu/widgets:v1.0.0-alpha.1
Latest Version:v1.0.0-alpha.1
PHP:^8.4
Laravel:12 · 13
License:MIT
Last Updated:Nov 24, 2026
Links: GitHub  ·  Packagist
Maintainer: dash8x

Widgets

Tests codecov Latest Version on Packagist License: MIT

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.

Related Packages

javaabu/form-builder

Dynamic forms for Laravel: versioned form definitions and entries in the databas...

33 0
javaabu/stencil

Fluent form schemas for Laravel: define a form once in PHP and render it with Bl...

506 0
javaabu/filters

Filters and sorts for Laravel index pages: define each filter once, apply it to...

181 0
javaabu/bulk-actions

Fluent bulk actions for Laravel: each authorized through the Gate with can(), op...

105 0

Version History

Pre-releases (1)
Version Released PHP Laravel License
v1.0.0-alpha.1 ^8.4 ^12.0 || ^13.0 MIT