aist/aist-insight

ZF2 View helper plugin for SensioLabsInsight.

0.1.0 2016-05-15 10:21 UTC

This package is not auto-updated.

Last update: 2024-04-19 18:32:32 UTC


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