{"uid":"cap_Gs0-ERwXAOGw-BXSAnYAH","slug":"packagist-php-package-metadata-lookup-x402-5a52d729","name":"Packagist PHP Package Metadata Lookup (x402)","description":"Composer/Packagist package metadata p2 (keyless). POST {vendor}/{package}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. PHP package registry lane (≠ npm/pypi/crates).","url":"https://x402-v2-mint-packagist-package.vercel.app/v1/packagist-package?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"vendor":{"type":"string","maxLength":128},"package":{"type":"string","maxLength":128},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"packagist-package","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020162","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.020162/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020162","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020162","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LOMmZIaUzfQK3AQmruclc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.020162","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches Composer/Packagist metadata for a PHP package by vendor and package name, returning a summary via x402 micropayment-gated API.","exampleAgentPrompt":"Can you look up the Packagist metadata for the PHP package vendor 'guzzlehttp' and package 'guzzle'?","exampleUseCases":[{"title":"Check if a PHP dependency exists","prompt":"Is there a Packagist package called 'symfony/console'? I want to confirm it exists before adding it to my Composer file."},{"title":"Fetch package details for a code audit","prompt":"Can you pull the Packagist metadata for 'laravel/framework' so I can review the package description and summary?"},{"title":"Automated dependency research","prompt":"I'm building a report on popular PHP libraries — can you grab the Packagist info for 'monolog/monolog'?"}],"resultDescription":"A JSON response indicating whether the lookup succeeded (ok: true/false), whether the micropayment was charged (charged: true/false), the skill name ('packagist-package'), and a summary string ('ok' on success). On payment failure or invalid input, returns 400 with charged: false.","failureModes":["Unpaid request returns HTTP 402 with empty body (payment required via x402 protocol)","After settlement, invalid or unknown vendor/package returns HTTP 400 with charged:false","Malformed vendor or package name exceeding 128 characters may be rejected","Network or upstream Packagist API unavailability may cause failures"],"whenToPreferThis":"Use this endpoint when you need to programmatically retrieve PHP Composer/Packagist package metadata and are operating in an x402 micropayment-enabled environment. Prefer this over npm, PyPI, or crates.io lookup endpoints specifically when the target package is a PHP/Composer package. It is distinct from npm (JavaScript), PyPI (Python), and crates.io (Rust) registry lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:37:28.620Z","isFirstParty":false,"canonicalSlug":"packagist-php-package-metadata-lookup-x402-5a52d729"}