Skip to content

Haehnchen/idea-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

espendIdeaBadge

Build Status Total Downloads Latest Stable Version

Install

$ php composer.phar require espend/idea-badge
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new espend\IdeaBadgeBundle\espendIdeaBadgeBundle(),
    );
}

Configuration

# app/config/routing.yml

espend_poser_extra:
    resource: .
    type: espend_idea_badge

Basic Usage

# app/config/config.yml

espend_idea_badge:
    badge_lifetime:       3600
    route_path:           '/badges/{id}/{provider}'
    badge_controller:     'espend_idea_badge_bundle.badge.controller:showAction'
    monthly_storage_path: '%kernel.root_dir%/../var/badge_monthly_storage_path.json'

Urls

/badge/{pluginId}/downloads
/badge/{pluginId}/last-month
/badge/{pluginId}/version

Run tests

vendor/bin/phpunit tests/