PHPackages                             phalcon-ext/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. phalcon-ext/widgets

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

phalcon-ext/widgets
===================

Widgets component for Phalcon.

v0.2.0(11y ago)718.0k↓50%1LGPLPHPPHP &gt;=5.4.0

Since Oct 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/phalcon-ext/widgets)[ Packagist](https://packagist.org/packages/phalcon-ext/widgets)[ RSS](/packages/phalcon-ext-widgets/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Phalcon\\Ext\\Widgets
=====================

[](#phalconextwidgets)

Installing
----------

[](#installing)

Install composer in a common location or in your project:

```
curl -s http://getcomposer.org/installer | php

```

Create the composer.json file as follows:

```
{
	"require": {
		"phalcon-ext/widgets": "dev-master"
	}
}

```

Run the composer installer:

```
php composer.phar install
```

Add in your the code

```
require_once('vendor/autoload.php');

```

Using
-----

[](#using)

```
class SomeWidget extends Phalcon\Ext\Widgets\WidgetBase
{
  public function init()
  {
    // optional some method
  }

  public function render($params = null)
  {
    return $params['a'] + $params['b'] * ($params['c'] ?: 1);
  }
}

// Register widgets manager in DI
$di->setShared('widgets', function() use ($di) {

  $widgets = new Phalcon\Ext\Widgets\Manager();

  // Register some widget (the syntax is similar in DI)
  $widgets->set('some', function($options) {
    $widget = SomeWidget($options);
    $widget->init();

    return $widget;
  });

  return $widgets;
});

/**
 * Somewhere in view
 */

$options = []; // Optional parameter, It will be passed to the constructor of the widget before creating

echo $this->getDI()->get('widgets')->render('some', ['a' => 5, 'b' => 5, 'c' => 2], $options); // 15
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~15 days

Total

2

Last Release

4214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b2b458b3327649abf9cec7ab299c2b5a4c917f2955b93df7c02f6ddaf16d70a?d=identicon)[KorsaR-ZN](/maintainers/KorsaR-ZN)

---

Top Contributors

[![KorsaR-ZN](https://avatars.githubusercontent.com/u/579410?v=4)](https://github.com/KorsaR-ZN "KorsaR-ZN (10 commits)")

---

Tags

widgetphalconwidgetsphalcon-ext

### Embed Badge

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

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

###  Alternatives

[wpbp/widgets-helper

A class to ease creating powered Widgets on WordPress

1213.3k](/packages/wpbp-widgets-helper)[klisl/laravel-widgets

Package for using widgets in Laravel-5

103.7k](/packages/klisl-laravel-widgets)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)[coldtrick/widget_manager

Manage your widgets

214.3k](/packages/coldtrick-widget-manager)

PHPackages © 2026

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