aist/aist-insight
最新稳定版本:0.1.0
Composer 安装命令:
composer require aist/aist-insight
包简介
ZF2 View helper plugin for SensioLabsInsight.
README 文档
README
ZF2 View helper plugin for SensioLabsInsight.
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
-
Install the module via composer by running:
php composer.phar require aist/aist-insights
or download it directly from github and place it in your application's
module/directory. -
Add the
AistInsightsmodule to the module section of yourconfig/application.config.php
Use
Required Insight project key.
echo $this->insight('project_key', ['badge_size' => Insight::SIZE_BIG, 'linked' => true], ['class' => 'pull-right']);
echo $this->insight('project_key', [], ['class' => 'pull-right']);
echo $this->insight('project_key', Insight::OPTIONS, ['class' => 'pull-right']);
each one will render the HTML below:
<a href="https://insight.sensiolabs.com/projects/{project_key}">
<img src="https://insight.sensiolabs.com/projects/{project_key}/{size}.png" class="pull-right">
</a>
Available sizes: big, small, mini.
Defaults:
- badge_size
big - linked
true - secure
true
Checklist
- Add tests
统计信息
- 总下载量: 102
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-08-25