espend/idea-badge

There is no license information available for the latest version (v1.5.0) of this package.

Provides badges support for statistics of IntelliJ IDEA / PhpStorm Plugin Repository with the help of Poser library.

v1.5.0 2020-01-03 16:09 UTC

This package is auto-updated.

Last update: 2024-03-29 02:50:23 UTC


README

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/