PHPackages                             venne/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. venne/widgets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

venne/widgets
=============

Venne widgets component

0165PHP

Since Mar 3Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Venne/widgets)[ Packagist](https://packagist.org/packages/venne/widgets)[ RSS](/packages/venne-widgets/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Venne:Widgets [![Build Status](https://camo.githubusercontent.com/fcf39aa51ba5396810b5f3d51f689fb73b6ed55e4240eb90324230d3d6b7297a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f56656e6e652f776964676574732e706e67)](http://travis-ci.org/Venne/widgets)
=====================================================================================================================================================================================================================================================================

[](#vennewidgets-)

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

[](#installation)

The best way to install Venne/Widgets is using Composer:

```
composer require venne/widgets:@dev
```

Automatic usage
---------------

[](#automatic-usage)

### Register widgets

[](#register-widgets)

Use tag `venne.widget`:

```
services:
	myControlFactory:
		class: App\MyControlFactory
		tags: [venne.widget: 'myWidget']
```

### Use widgets in presenters/controls as global component

[](#use-widgets-in-presenterscontrols-as-global-component)

```
class ExamplePresenter extends Nette\Application\UI\Presenter
{
	use Venne\Widgets\WidgetsControlTrait;
}
```

Template:

```
...
{control myWidget}
...
```

Manual usage
------------

[](#manual-usage)

**Register some widgets**

```
$widgetManager = new Venne\Widgets\WidgetManager($systemContainer);
$widgetManager->addWidget('widget1', function() {
	return new MyComponent;
});
$widgetManager->addWidget('widget2', new MyFormFactory);
$widgetManager->addWidget('widget3', 'app.myFormFactory'); // service in system container
```

**Create instance and use it**

```
if ($widgetManager->hasWidget('widget1')) {
	$widget = $widgetManager->getWidget('widget1');
	$widget->render();
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a173564fd150b9e9c8307ba7de2cf5588d0bcee71553f35d8946ff3abc4ce21e?d=identicon)[pepakriz](/maintainers/pepakriz)

---

Top Contributors

[![pepakriz](https://avatars.githubusercontent.com/u/383294?v=4)](https://github.com/pepakriz "pepakriz (15 commits)")

### Embed Badge

![Health badge](/badges/venne-widgets/health.svg)

```
[![Health](https://phpackages.com/badges/venne-widgets/health.svg)](https://phpackages.com/packages/venne-widgets)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
