Packagist
Developerrepo.packagist.org
PHP package metadata from Packagist: every Composer version, requirements and autoload configuration.
Capabilities (9)
GET /v1/data/packagist/details1 creditReturns Packagist's own record for a package: description, GitHub repository, maintainers, language and issue stats, total/monthly/daily download counts, favers (stars), abandoned flag, and the full expanded version list.
GET /v1/data/packagist/dev1 creditReturns the same Composer v2 metadata document but for the package's unreleased branches (dev-main, dev-master, 2.x-dev and so on) instead of its tagged versions.
GET /v1/data/packagist/downloads1 creditReturns two parallel arrays: month labels (YYYY-MM) and install counts, covering the package's entire recorded history on Packagist.
GET /v1/data/packagist/list1 creditReturns a flat array of every package name published under one vendor namespace.
GET /v1/data/packagist/package1 creditReturns the Composer v2 metadata document for a package's tagged releases: every stable version with its require/require-dev map, autoload config, dist and source URLs, license and release time.
GET /v1/data/packagist/popular1 creditReturns the Packagist leaderboard: the most-downloaded PHP packages with name, description, repository, download count and favers, paged.
GET /v1/data/packagist/search1 creditFull-text search over Packagist, returning matched packages with name, description, repository URL, total downloads and favers, plus a next-page URL.
GET /v1/data/packagist/security-advisories1 creditReturns every known security advisory affecting one Composer package: advisory id, title, CVE, affected version constraint, link and report date, sourced from the FriendsOfPHP and GitHub advisory databases.
GET /v1/data/packagist/stats1 creditReturns a package's total, monthly and daily install counts plus the list of version strings Packagist tracks stats for.
Response example
The shape of data from packagist/details (Package details). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"package": {
"name": "monolog/monolog",
"description": "Sends your logs to files, sockets, inboxes, databases and various web services",
"time": "2011-09-27T00:35:19+00:00",
"maintainers": [
{
"name": "Seldaek",
"avatar_url": "https://www.gravatar.com/avatar/b69782e1d7f426ef78f61d159c466a536372eff931f13981ac578fa3f4649352?d=identicon"
}
],
"versions": {
"dev-main": {
"name": "monolog/monolog",
"description": "Sends your logs to files, sockets, inboxes, databases and various web services",
"keywords": [
"log",
"logging",
"… 1 more items"
],
"homepage": "https://github.com/Seldaek/monolog",
"version": "dev-main",
"version_normalized": "dev-main",
"license": [
"MIT"
],
"authors": [
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "https://seld.be"
}
],
"source": {
"url": "https://github.com/Seldaek/monolog.git",
"type": "git",
"reference": "3bed304b1905fed5c30d172872f4d890cbb03c6a"
},
"dist": {
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/3bed304b1905fed5c30d172872f4d890cbb03c6a",
"type": "zip",
"shasum": "",
"reference": "3bed304b1905fed5c30d172872f4d890cbb03c6a"
},
"type": "library",
"support": {
"issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/main"
},
"funding": [
{
"url": "https://github.com/Seldaek",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/monolog/monolog",
"type": "tidelift"
}
],
"time": "2026-10-05T13:02:04+00:00",
"published-time": "2026-10-05T13:02:08+00:00",
"autoload": {
"psr-4": {
"Monolog\\": "src/Monolog"
}
},
"extra": {
"branch-alias": {
"dev-main": "3.x-dev"
}
},
"default-branch": true,
"require": {
"php": ">=8.1",
"psr/log": "^2.0 || ^3.0"
},
"require-dev": {
"doctrine/couchdb": "~1.0@dev",
"php-amqplib/php-amqplib": "~2.4 || ^3",
"aws/aws-sdk-php": "^3.0",
"ext-json": "*",
"elasticsearch/elasticsearch": "^7 || ^8",
"guzzlehttp/psr7": "^2.2",
"symfony/mailer": "^5.4 || ^6",
"symfony/mime": "^5.4 || ^6",
"predis/predis": "^1.1 || ^2",
"guzzlehttp/guzzle": "^7.4.5",
"graylog2/gelf-php": "^1.4.2 || ^2.0",
"ruflin/elastica": "^7 || ^8",
"rollbar/rollbar": "^4.0",
"php-console/php-console": "^3.1.8",
"phpstan/phpstan": "^2",
"phpstan/phpstan-deprecation-rules": "^2",
"phpstan/phpstan-strict-rules": "^2",
"phpunit/phpunit": "^10.5.17 || ^11.0.7",
"mongodb/mongodb": "^1.8 || ^2.0",
"psr/clock": "^1.0"
},
"suggest": {
"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
"doctrine/couchdb": "Allow sending log messages to a CouchDB server",
"ruflin/elastica": "Allow sending log messages to an Elastic Search server",
"elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client",
"php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
"ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
"ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)",
"mongodb/mongodb": "Allow sending log messages to a MongoDB server (via liAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Package details
Use Packagist (packagist) from fastCRW Pergamon, capability "Package details" (details). You want the human-facing facts about a PHP package — popularity, maintainers, repo, whether it is abandoned — not just its Composer requirements. Example options: vendor=monolog, name=monolog. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "packagist" and capability "details". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Development branch metadata
Use Packagist (packagist) from fastCRW Pergamon, capability "Development branch metadata" (dev). You need the requirements of a package's development branches rather than its tagged releases. Example options: vendor=monolog, name=monolog. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "packagist" and capability "dev". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Monthly download history
Use Packagist (packagist) from fastCRW Pergamon, capability "Monthly download history" (downloads). You want to chart a PHP package's adoption over months or years rather than read a single total. Example options: vendor=monolog, name=monolog, average=monthly. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "packagist" and capability "downloads". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Packages by vendor
Use Packagist (packagist) from fastCRW Pergamon, capability "Packages by vendor" (list). You know an organisation's vendor prefix and want to enumerate everything it publishes. Example options: vendor=monolog, type=library. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "packagist" and capability "list". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Packagist is the public Composer repository; the metadata endpoint is the documented way to read it. We pass it through and do not licence callers to rebuild the registry.
https://packagist.org/aboutAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: Packagist
Cache: up to 3600s
