PHPackages                             machour/yii2-sparkline - 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. machour/yii2-sparkline

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

machour/yii2-sparkline
======================

Yii2 jQuery Sparkline widget

1.0.0(10y ago)031.4k↓40%MITPHP

Since Nov 15Pushed 10y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

The jQuery sparkline assets and widget for Yii2.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist machour/yii2-sparkline "*"

```

or add

```
"machour/yii2-sparkline": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, use the widget this way:

```

```

This would produce the following sparkline: [![Sparkline example](docs/main.png)](docs/main.png)

This documentation is available [online](http://machour.idk.tn/yii/machour/yii2-sparkline)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3837d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50430982793b695a5a9a886a81b976606c71062b49cf38c12509801b1845b1b2?d=identicon)[machour](/maintainers/machour)

---

Top Contributors

[![machour](https://avatars.githubusercontent.com/u/304450?v=4)](https://github.com/machour "machour (7 commits)")

---

Tags

yii2extensionchartssparkline

### Embed Badge

![Health badge](/badges/machour-yii2-sparkline/health.svg)

```
[![Health](https://phpackages.com/badges/machour-yii2-sparkline/health.svg)](https://phpackages.com/packages/machour-yii2-sparkline)
```

###  Alternatives

[onmotion/yii2-widget-apexcharts

Yii2 charts widget - wrapper for the ApexCharts.js

1957.6k1](/packages/onmotion-yii2-widget-apexcharts)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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