Packagist · Schema

Packagist Package

A Composer package as published on Packagist.org.

ComposerPHPPackage RegistryDependency ManagementOpen-SourceDeveloper ToolsSoftware Supply ChainSecurity Advisories

Properties

Name Type Description
name string Fully qualified package name in vendor/package form.
description string
type string Composer package type.
keywords array
homepage string
license object
authors array
repository string
time string
maintainers array
versions object
downloads object
favers integer
dependents integer
suggesters integer
github_stars integer
github_watchers integer
github_forks integer
github_open_issues integer
language string
View JSON Schema on GitHub

JSON Schema

packagist-package-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/packagist/main/json-schema/packagist-package-schema.json",
  "title": "Packagist Package",
  "description": "A Composer package as published on Packagist.org.",
  "type": "object",
  "required": ["name", "type", "repository"],
  "properties": {
    "name": {
      "type": "string",
      "description": "Fully qualified package name in vendor/package form.",
      "pattern": "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]|-{1,2})?[a-z0-9]+)*$"
    },
    "description": { "type": "string" },
    "type": {
      "type": "string",
      "description": "Composer package type.",
      "examples": ["library", "project", "metapackage", "composer-plugin"]
    },
    "keywords": { "type": "array", "items": { "type": "string" } },
    "homepage": { "type": "string", "format": "uri" },
    "license": {
      "oneOf": [
        { "type": "string" },
        { "type": "array", "items": { "type": "string" } }
      ]
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "homepage": { "type": "string", "format": "uri" },
          "role": { "type": "string" }
        }
      }
    },
    "repository": { "type": "string", "format": "uri" },
    "time": { "type": "string", "format": "date-time" },
    "maintainers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "avatar_url": { "type": "string", "format": "uri" }
        }
      }
    },
    "versions": {
      "type": "object",
      "additionalProperties": { "$ref": "#/$defs/PackageVersion" }
    },
    "downloads": { "$ref": "#/$defs/DownloadStats" },
    "favers": { "type": "integer" },
    "dependents": { "type": "integer" },
    "suggesters": { "type": "integer" },
    "github_stars": { "type": "integer" },
    "github_watchers": { "type": "integer" },
    "github_forks": { "type": "integer" },
    "github_open_issues": { "type": "integer" },
    "language": { "type": "string" }
  },
  "$defs": {
    "PackageVersion": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "version": { "type": "string" },
        "version_normalized": { "type": "string" },
        "time": { "type": "string", "format": "date-time" },
        "type": { "type": "string" },
        "source": {
          "type": "object",
          "properties": {
            "type": { "type": "string" },
            "url": { "type": "string" },
            "reference": { "type": "string" }
          }
        },
        "dist": {
          "type": "object",
          "properties": {
            "type": { "type": "string" },
            "url": { "type": "string" },
            "reference": { "type": "string" },
            "shasum": { "type": "string" }
          }
        },
        "require": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "require-dev": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "autoload": { "type": "object" },
        "license": {
          "type": "array",
          "items": { "type": "string" }
        }
      }
    },
    "DownloadStats": {
      "type": "object",
      "properties": {
        "total": { "type": "integer" },
        "monthly": { "type": "integer" },
        "daily": { "type": "integer" }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/packagist-package"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.