PHPackages                             slavkovrn/yii2-googlechart - 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. slavkovrn/yii2-googlechart

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

slavkovrn/yii2-googlechart
==========================

Yii2 Google Chart

045PHP

Since Aug 25Pushed 6y agoCompare

[ Source](https://github.com/SlavKoVrn/yii2-googlechart)[ Packagist](https://packagist.org/packages/slavkovrn/yii2-googlechart)[ RSS](/packages/slavkovrn-yii2-googlechart/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Google Chart for Yii2 Framework
===============================

[](#google-chart-for-yii2-framework)

The extension uses Google library  and makes chart from php array of structure defined.

[![Google Chart](https://camo.githubusercontent.com/a15cfad1abb7a7d92c9655fdb2fbcabded593c1ba1c36e1496ed3b439eef2484/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f676f6f676c6563686172742e6a7067)](https://camo.githubusercontent.com/a15cfad1abb7a7d92c9655fdb2fbcabded593c1ba1c36e1496ed3b439eef2484/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f676f6f676c6563686172742e6a7067)

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

[](#installation)

Install with composer:

```
composer require slavkovrn/yii2-googlechart
```

or add

```
"slavkovrn/yii2-googlechart": "*"
```

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

Set link to extension in your view:

```
use slavkovrn\googlechart\GoogleChartWidget;

$data = [
    'SIN' => [
                number_format(0,5) => sin(0),
                number_format(Pi()/4,5) => sin(Pi()/4),
                number_format(Pi()/2,5) => sin(Pi()/2),
                number_format(Pi()/2+Pi()/4,5) => sin(Pi()/2+Pi()/4),
                number_format(Pi(),5) => sin(Pi()),
                number_format(Pi()+Pi()/4,5) => sin(Pi()+Pi()/4),
                number_format(Pi()+Pi()/2,5) => sin(Pi()+Pi()/2),
                number_format(Pi()+Pi()/2+Pi()/4,5) => sin(Pi()+Pi()/2+Pi()/4),
                number_format(2*Pi(),5) => sin(2*Pi()),
             ],
    'COS' => [
                number_format(0,5) => cos(0),
                number_format(Pi()/4,5) => cos(Pi()/4),
                number_format(Pi()/2,5) => cos(Pi()/2),
                number_format(Pi()/2+Pi()/4,5) => cos(Pi()/2+Pi()/4),
                number_format(Pi(),5) => cos(Pi()),
                number_format(Pi()+Pi()/4,5) => cos(Pi()+Pi()/4),
                number_format(Pi()+Pi()/2,5) => cos(Pi()+Pi()/2),
                number_format(Pi()+Pi()/2+Pi()/4,5) => cos(Pi()+Pi()/2+Pi()/4),
                number_format(2*Pi(),5) => cos(2*Pi()),
             ],
];

echo GoogleChartWidget::widget([
    'id' =>'google-chart',
    'title' => 'Google Chart',
    'style' => 'width:100%',
    'data' => $data,
]);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/30201456?v=4)[SlavKoVrn](/maintainers/slavkovrn)[@SlavKoVrn](https://github.com/SlavKoVrn)

---

Top Contributors

[![SlavKoVrn](https://avatars.githubusercontent.com/u/30201456?v=4)](https://github.com/SlavKoVrn "SlavKoVrn (3 commits)")

### Embed Badge

![Health badge](/badges/slavkovrn-yii2-googlechart/health.svg)

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

###  Alternatives

[am-impact/amnav

Navigation Plugin for Craft

16726.5k](/packages/am-impact-amnav)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.4k1](/packages/proteusthemes-wp-customizer-utilities)[nightjar/ss-slug

Serve DataObjects as pages through an Action on a relation's Controller without referencing the ID

116.7k2](/packages/nightjar-ss-slug)

PHPackages © 2026

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