PHPackages                             rinvex/laravel-widgets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. rinvex/laravel-widgets

AbandonedArchivedLibrary[Caching](/categories/caching)

rinvex/laravel-widgets
======================

Rinvex Widgets is a powerful and easy to use widget system, that combines both the power of code logic and the flexibility of template views. You can create asynchronous widgets, reloadable widgets, and use the console generator to auto generate your widgets, all out of the box.

v5.0.1(5y ago)401.6k10MITPHPPHP ^7.4.0 || ^8.0.0

Since Feb 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rinvex/laravel-widgets)[ Packagist](https://packagist.org/packages/rinvex/laravel-widgets)[ Docs](https://rinvex.com)[ RSS](/packages/rinvex-laravel-widgets/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (8)Versions (21)Used By (0)

Rinvex Widgets
==============

[](#rinvex-widgets)

⚠️ This package is abandoned and no longer maintained. No replacement package was suggested. ⚠️

👉 If you are interested to step on as the main maintainer of this package, please [reach out to me](https://twitter.com/omranic)!

---

**Rinvex Widgets** is a powerful and easy to use widget system, that combines both the power of code logic and the flexibility of template views. You can create asynchronous widgets, reloadable widgets, and use the console generator to auto generate your widgets, all out of the box.

[![Packagist](https://camo.githubusercontent.com/42c50607b41951fa66ecc1c6c73bb644e39b3e0fe86f0ab8a575cc9f0fd1dcbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e7665782f6c61726176656c2d776964676574732e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/rinvex/laravel-widgets)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ce22a67facb9d36660677e030635ac76d9267974688f3515dde039f61a9a820a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72696e7665782f6c61726176656c2d776964676574732e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rinvex/laravel-widgets/)[![Travis](https://camo.githubusercontent.com/91ece6bbe65045a50440ef200dd8b6e4ae68add426f627f06e52fffa6979886b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696e7665782f6c61726176656c2d776964676574732e7376673f6c6162656c3d5472617669734349267374796c653d666c61742d737175617265)](https://travis-ci.org/rinvex/laravel-widgets)[![StyleCI](https://camo.githubusercontent.com/90d6ed61bb1ab8039742ed7134783d173b38e8b40fc8c9c24c9edde7253a45b5/68747470733a2f2f7374796c6563692e696f2f7265706f732f39383830353030372f736869656c64)](https://styleci.io/repos/98805007)[![License](https://camo.githubusercontent.com/d6d98dbc8c427d5949883d794528eb76157d9cfcc5fb546c8d3d06dd8e7f868e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e7665782f6c61726176656c2d776964676574732e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/rinvex/laravel-widgets/blob/develop/LICENSE)

Installation
------------

[](#installation)

1. Install the package via composer:

    ```
    composer require rinvex/laravel-widgets
    ```
2. Done!

Usage
-----

[](#usage)

### Create your widget

[](#create-your-widget)

Let's assume that we want to make a list of recent posts as a widget, and reuse it in several locations.

First, we can create a Widget class using the following command:

```
php artisan make:widget RecentPosts

```

That command will generate a new widget class with `App\Widgets\RecentPosts` namespace, and located at `app/Widgets/RecentPosts.php` path by default.

The basic content of a widget is as follows:

```
