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
Requires
- badges/poser: ^1.3
- symfony/framework-bundle: ~3.1 | ^4.0
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2024-10-29 04:14:41 UTC
README
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/