$ php composer.phar require espend/idea-badge
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new espend\IdeaBadgeBundle\espendIdeaBadgeBundle(),
);
}
# app/config/routing.yml
espend_poser_extra:
resource: .
type: espend_idea_badge
# 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'
/badge/{pluginId}/downloads
/badge/{pluginId}/last-month
/badge/{pluginId}/version
vendor/bin/phpunit tests/