sohelrana820/phpgc
Composer 安装命令:
composer require sohelrana820/phpgc
包简介
PHP wrapper class for the Google Chart API
关键字:
README 文档
README
phpgc is the PHP wrapper class which provides a flexible way to build chart. phpgc is using Google Chart api to draw chart. This is actually working as wrapper of google chart api. With this phpgc you can easily visualise your data into your web application.
Installation
Write "sohelrana820/phpgc": "dev-master" in your composer.json file to install. If you want to manual install then download this repository and store somewhere in your project.
Usage
Create a instance of phpgc class $chart = new \src\phpgc(); Now you can create chart by using this $chart object. Here I am showing example code for creating a pie chart.
$pieColumns = array( 'Country' => array( 'type' => 'string', 'label' => 'Name of Country' ), 'Population' => array( 'type' => 'number', 'label' => 'Population' ) ); $pieRows = array( array( 0 => 'Germany', 1 => 100000, ), array( 0 => 'United States', 1 => 120000, ), array( 0 => 'Brazil', 1 => 80000, ), array( 0 => 'Canada', 1 => 70000, ), array( 0 => 'France', 1 => 50000, ), array( 0 => 'BD', 1 => 100000, ), array( 0 => 'RU', 1 => 90000, ), ); $pieOptions = array( 'title' => 'Population', 'width' => 'autometic', 'height' => '250', 'widget' => true, 'class' => 'custom', 'div' => 'pie_chart_1', ); echo $chart->pieChart($pieColumns, $pieRows, $pieOptions);
Please click here for see the full chart list.
sohelrana820/phpgc 适用场景与选型建议
sohelrana820/phpgc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 4, 最近一次更新时间为 2015 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「graph」 「chart」 「google chart」 「gChart」 「Google Graph」 「google chart api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sohelrana820/phpgc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sohelrana820/phpgc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sohelrana820/phpgc 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple PHP chart drawing library
Netgen Open Graph Bundle is an Ibexa Platform bundle that allows simple integration with Open Graph protocol.
Yii2 chartjs
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
Composer Friendly, full refactor of JpGraph, library to make graphs and charts
Simple HTML5 charts using the canvas element.
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-06