aist / aist-insight
ZF2 View helper plugin for SensioLabsInsight.
Installs: 100
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:zf2-module
Requires
- zendframework/zend-view: >=2.3.3
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is not auto-updated.
Last update: 2024-12-13 21:35:31 UTC
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
AistInsights
module 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