composer / composer/packagist

Get "dependents" with specific version constraints

Open
#1,391 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
1.8k
Forks
488
Avg merge
2d 12h
Merged PRs (30d)
24

Description

I would love for a possibility on packagist to get a list of packages which depend on a specific version constraint of a base package.

There is i.e. https://packagist.org/packages/typo3/cms-core/dependents?order_by=downloads - but that lists a few thousand packages. I would like to only see packages that are compatible with TYPO3 ^12.0.

Reason is I want to check for a specific code fragment in all public extensions for this project for research, and I somehow need to download&grep in all these packages.

As a fallback I could use a filter option on https://packagist.org/search.json?type=typo3-cms-extension&per_page=100 with version constraints?

(I tried for a few hours to research existing issues and stackoverflow, didn't really find anything. I'm sorry if there is a duplicate issue on this)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing dependents page at packagist.org/packages/typo3/cms-core/dependents and the search.json endpoint mentioned in the issue. Trace how dependent packages and version constraints are represented, then determine where a ^12.0 filter would fit. Done means the result contains only packages compatible with the requested constraint.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.