composer / composer/packagist

[FEATURE] Provide download information by day/month/year

Open
#991 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1.8k
Forks
488
Avg merge
2d 21h
Merged PRs (30d)
32

Description

Currently it's possible to get the downloads by version with `https://packagist.org/packages/[vendor]/[package]/downloads.json`.

The problem is that if the day / month / year is over, you can't get the number of downloads of the last day / month / year.

Would be nice to have the download numbers by a parameter which gives you a year (`2018`), a month (`2019-01`) or a day (`2019-01-22`).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the existing downloads.json endpoint and how its version-based download data is produced. Determine how year, month, and day parameters should retrieve completed periods, then verify that each requested period returns the expected download count.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
analytics, api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.