PHPackages                             oncology-support/sparkline-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. oncology-support/sparkline-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

oncology-support/sparkline-bundle
=================================

Symfony Bundle that ease the use of Davaxi/Sparkline to display sparkline graphs in your app

2.5(6mo ago)11771MITPHPPHP &gt;=8.2

Since Jun 25Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/OncologySupport/SparklineBundle)[ Packagist](https://packagist.org/packages/oncology-support/sparkline-bundle)[ Docs](https://github.com/ehymel/SparklineBundle)[ RSS](/packages/oncology-support-sparkline-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (9)Versions (22)Used By (0)

Sparkline Bundle
================

[](#sparkline-bundle)

`SparklineBundle` eases the use of the excellent/handy [Davaxi/Sparkline php library](https://github.com/davaxi/Sparkline)in your Symfony application by providing a Twig extension to do the work.

Documentation
-------------

[](#documentation)

License
-------

[](#license)

SparklineBundle is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.

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

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require oncology-support/sparkline-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require oncology-support/sparkline-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    OncologySupport\Sparkline\OncologySupportSparklineBundle::class => ['all' => true],
];
```

### Step 3: Use it!

[](#step-3-use-it)

This bundle allows you to insert a sparkline graph directly into your twig templates by passing an array of values that will be inserted into a sparkline graph. Note the use of the `|raw` pipe function! This is important.

```
// your twig template

{{ sparkline()|raw }}
```

For example, for dataset `[2,3,10,8,23,14,9,12,0,0,14]` the twig line:,

```
// your twig template

{{ sparkline([2,3,10,8,23,14,9,12,0,0,14])|raw }}
```

will insert a sparkline image like so: [![sparkline](assets/testimage.png)](assets/testimage.png)

In the future I may add the ability to pass options to modify the appearance of the graph.

Enjoy!

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance66

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~45 days

Recently: every ~137 days

Total

21

Last Release

201d ago

Major Versions

1.1.1 → 2.0.02023-12-18

PHP version history (3 changes)1.0.0PHP &gt;=7.0

1.1.0PHP &gt;=7.4

2.0.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![ehymel](https://avatars.githubusercontent.com/u/11381475?v=4)](https://github.com/ehymel "ehymel (4 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")

---

Tags

symfonygraphschartgraphchartssparklinedavaxi

### Embed Badge

![Health badge](/badges/oncology-support-sparkline-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/oncology-support-sparkline-bundle/health.svg)](https://phpackages.com/packages/oncology-support-sparkline-bundle)
```

PHPackages © 2026

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