Skip to main content
All providers

Packagist

Developer

repo.packagist.org

PHP package metadata from Packagist: every Composer version, requirements and autoload configuration.

Capabilities (9)

GET /v1/data/packagist/details1 credit

Returns 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.

vendorname
GET /v1/data/packagist/dev1 credit

Returns 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.

vendorname
GET /v1/data/packagist/downloads1 credit

Returns two parallel arrays: month labels (YYYY-MM) and install counts, covering the package's entire recorded history on Packagist.

vendornameaverage?from?to?
GET /v1/data/packagist/list1 credit

Returns a flat array of every package name published under one vendor namespace.

vendortype?
GET /v1/data/packagist/package1 credit

Returns 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.

vendorname
GET /v1/data/packagist/popular1 credit

Returns the Packagist leaderboard: the most-downloaded PHP packages with name, description, repository, download count and favers, paged.

page?per_page?
GET /v1/data/packagist/search1 credit

Full-text search over Packagist, returning matched packages with name, description, repository URL, total downloads and favers, plus a next-page URL.

qtype?per_page?page?
GET /v1/data/packagist/security-advisories1 credit

Returns 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.

packageupdatedSince?
GET /v1/data/packagist/stats1 credit

Returns a package's total, monthly and daily install counts plus the list of version strings Packagist tracks stats for.

vendorname

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.

JSON
{
  "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 li

Ask 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/about

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: Packagist

Cache: up to 3600s