PHPackages                             ddebin/mc-google-visualization - 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. [Database &amp; ORM](/categories/database)
4. /
5. ddebin/mc-google-visualization

ActiveLibrary[Database &amp; ORM](/categories/database)

ddebin/mc-google-visualization
==============================

Google Visualization datasource with your own database

0.6.4(8mo ago)53.1kMITPHPPHP ^7.1 || ^8.0CI passing

Since Oct 28Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/ddebin/mc-google-visualization)[ Packagist](https://packagist.org/packages/ddebin/mc-google-visualization)[ Docs](https://github.com/ddebin/mc-google-visualization)[ RSS](/packages/ddebin-mc-google-visualization/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3f2e97634a41df1dd4d95249a6c13c8fc41d155215da5c31cadef840c33f2d2f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64646562696e2f6d632d676f6f676c652d76697375616c697a6174696f6e2f6d61696e2e796d6c3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/3f2e97634a41df1dd4d95249a6c13c8fc41d155215da5c31cadef840c33f2d2f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64646562696e2f6d632d676f6f676c652d76697375616c697a6174696f6e2f6d61696e2e796d6c3f7374796c653d666f722d7468652d6261646765)

MC\_Google\_Visualization: Google Visualization datasource with your own database
=================================================================================

[](#mc_google_visualization-google-visualization-datasource-with-your-own-database)

MC\_Google\_Visualization provides simple support for integrating [Google Visualization charts and graphs](http://code.google.com/apis/visualization/documentation/) with your own internal database. It includes a complete parser for the Google Visualization Query Language, giving you the same ease of pivoting and formatting data from your database as is currently possible with Google Spreadsheets.

It's a fork of .

Installing
----------

[](#installing)

Install via [Composer](https://getcomposer.org/):

```
composer require ddebin/mc-google-visualization
```

Examples
--------

[](#examples)

Some examples can be found in the `examples/` directory. Browse to `examples/` to see the list. For these examples, PDO with SQLite3 support is required.

```
cd examples/
php -S localhost:8000
```

And then browse to .

You must allow Flash content in local (cf. [*Note for Developers*](https://developers.google.com/chart/interactive/docs/gallery/motionchart)).

Differences Between MC\_Google\_Visualization and Reference Query Language
--------------------------------------------------------------------------

[](#differences-between-mc_google_visualization-and-reference-query-language)

MC\_Google\_Visualization tries to be exactly compatible with the query language [defined by Google](http://code.google.com/apis/visualization/documentation/querylanguage.html), but writing this in PHP makes some choices easier than others.

Here's where there are still known incompatibilities between our implementations:

### Format Strings

[](#format-strings)

The Google Visualization Query Language defines their formats as patterns supported by [ICU](http://www.icu-project.org/). Since PHP has no built-in support for these patterns, we instead use the default patterns provided by PHP. For "date", "timeofday", and "datetime" fields, we use PHP `date()` formatting strings.

For number fields, we use a custom set of patterns that match the most common formatting styles. A format string of "num:x" runs the number through `number_format` and shows `x` decimal places. The special format string "dollars" will prepend the string with a dollar sign and format the number to two decimal places. The format string "percent" will multiply the number by 100, format it to one decimal place, and append a percent sign. Anything else will be treated as a `sprintf()` format string.

More Information
----------------

[](#more-information)

- [Google Visualization Query Language Reference](http://code.google.com/apis/visualization/documentation/querylanguage.html)
- [PHP PDO Reference](http://www.php.net/pdo)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance67

Regular maintenance activity

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Every ~305 days

Recently: every ~335 days

Total

14

Last Release

251d ago

PHP version history (5 changes)0.3.1PHP &gt;=5.3.0

0.4PHP ^5.4 || ^7.0

0.5.0PHP ^7.0

0.6.0PHP ^7.1 || 8.0.\*

0.6.1PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9deef0e1910c96cfc449410cc7743515b2ee5526bafb6826f59c2bda4aaaf1fd?d=identicon)[ddebin](/maintainers/ddebin)

---

Top Contributors

[![ddebin](https://avatars.githubusercontent.com/u/458007?v=4)](https://github.com/ddebin "ddebin (16 commits)")

---

Tags

google-visualizationgoogle-visualization-apipackagistphpvisualizationgoogledatabasedatasourcechartsvisualization

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ddebin-mc-google-visualization/health.svg)

```
[![Health](https://phpackages.com/badges/ddebin-mc-google-visualization/health.svg)](https://phpackages.com/packages/ddebin-mc-google-visualization)
```

###  Alternatives

[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

6928.6k1](/packages/morrislaptop-firestore-php)

PHPackages © 2026

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