PHPackages                             bubifengyun/yii2-echarts - 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. bubifengyun/yii2-echarts

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

bubifengyun/yii2-echarts
========================

Using hisune/echarts-php and bower-asset/echarts, complete it.

v0.0.7(8y ago)71101Apache-2.0PHP

Since Feb 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/bubifengyun/yii2-echarts)[ Packagist](https://packagist.org/packages/bubifengyun/yii2-echarts)[ RSS](/packages/bubifengyun-yii2-echarts/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Easy use echarts in yii2 when offline.
======================================

[](#easy-use-echarts-in-yii2-when-offline)

Yii2 离线使用百度 echarts
===================

[](#yii2-离线使用百度-echarts)

使用 `hisune\echarts-php` 和 `bower-asset\echarts`，这样代码安装完成后，可以离线使用，不用每次都要联网去查百度的echarts。 但是安装会比较慢，请慢慢等待。 本代码最初实现在[yiichina](http://www.yiichina.com/tutorial/503)，曾提议改成单独的形式，遂有了本代码。功能是 `hisune\echarts-php` 的部分实现，唯独使用时不用联网找百度echarts。

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

[](#installation)

安装
--

[](#安装)

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

Either run

```
php composer.phar require bubifengyun/yii2-echarts "@dev"

```

or add

```
"bubifengyun/yii2-echarts": "@dev"

```

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

Usage
-----

[](#usage)

用法
--

[](#用法)

详细使用方法参考:  。不同之处在于本文只实现了其 `ECharts` 部分。使用的类名字可能需要做修改。

Once the extension is installed, simply use it in your code by :

```
