Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

brackets-extension-badges/badge-provider-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP badge provider

brackets-extension-badges



Brackets extension badges are download counters for your Brackets extensions, as Adobe doesn't provide any official way to retrieve statistics, even for your own extension.

This repository is the PHP version of the server, which manages both statistics databases and .svg badge generation. It written with the Lumen framework

Warning

The PHP version of the server is the original one, but the development has been abandoned in favour of the Node.js version, currently available at badges.ml

Routes

  • / - Redirects to brackets-extension-badges.github.io
  • /EXTENSION_NAME/total.svg - A badge showing the total number of downloads
  • /EXTENSION_NAME/last-version.svg - A badge showing number of downloads for the latest version of the extension
  • /EXTENSION_NAME/week.svg - A badge showing the number of downloads during the last 7 days
  • /EXTENSION_NAME/day.svg - A badge showing the average downloads per day, based on the last 7 days
  • /list.json - A list of all extensions with total download numbers.

Finding the extension name

The name of an extension is defined in the package.json file, at the root of the extension.

Deployment

The badge provider is a Lumen application with a MySQL database. It can be easily deployed with Laradock, a Docker PHP development environment.

Deploying requires git, docker and docker-compose.

Check out the Deployment page of the wiki for detailed steps.