APIs / Packagist / Popular packages

Packagist: Popular packages

The most downloaded PHP packages on Packagist, with total downloads and favourites.

GET /v1/packagist/popular

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
pageintegerOptionalAny
Results page, from 1.
per_pageintegerOptionalAny
Results per page, 1 to 100. Default 15.

Example request

Packagist
GET/v1/packagist/popular?per_page=10
{
  "success": true,
  "data": {
    "total": 484763,
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "name": "symfony/deprecation-contracts",
        "description": "A generic function and convention to trigger deprecation notices",
        "downloads": 1037084657,
        "favers": 2104,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/deprecation-contracts"
      },
      {
        "name": "symfony/polyfill-mbstring",
        "description": "Symfony polyfill for the Mbstring extension",
        "downloads": 1373542332,
        "favers": 7830,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/polyfill-mbstring"
      },
      {
        "name": "symfony/console",
        "description": "Eases the creation of beautiful and testable command line interfaces",
        "downloads": 1289416503,
        "favers": 9990,
        "abandoned": false,
        "url": "https://packagist.org/packages/symfony/console"
      }
    ]
  },
  "meta": {
    "request_id": "req_47a808b038604642973e36e18cfe5af9",
    "credits_charged": 1,
    "credits_remaining": 1969
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 6 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
namestring
descriptionstring
downloadsinteger
faversinteger
abandonedboolean
urlurl