aist/aist-insight 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Build Status Total Downloads Reference Status Dependency Status Packagist Code Climate Scrutinizer Code Quality License

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

  1. 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.

  2. Add the AistInsights module to the module section of your config/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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-25