lordbaine/am-charts-bundle

此包的最新版本(dev-master)没有可用的许可信息。

AmCharts Bundle for Symfony2

安装: 227

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2013-06-10 20:36 UTC

This package is not auto-updated.

Last update: 2024-09-23 14:14:26 UTC


README

AmCharts Bundle for Symfony2

当前版本

JavaScript Charts 2.10.1 2013年5月20日

安装

将包添加到您的composer.json文件中

// composer.json

{
    "require": {
        // ...
        "lordbaine/am-charts-bundle": "dev-master"
    }
}

将包添加到您的应用程序内核中

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new LordBaine\AmChartsBundle\LordBaineAmChartsBundle(),
        // ...
    );
}

使用Composer下载包

$ php composer.phar update lordbaine/am-charts-bundle

安装资源

假设您的服务器公共目录名为"web",安装公共供应商资源

$ php app/console assets:install web

可选地,使用 --symlink 属性创建链接而不是资源的副本

$ php app/console assets:install --symlink web

使用方法

在您的HTML模板中引用所需的文件,例如。

{% javascripts '@LordBaineAmChartsBundle/Resources/public/js/amcharts.js' %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}

许可证

请参阅包含文件的源代码以获取许可证信息

参考

  1. http://www.amcharts.com/javascript-charts/
  2. https://symfony.com.cn