class Packagist (View source)

The Packagist class handles all requests to the Packagist API.

Methods

static array
getPackages(string $type = '')

Get a list op packages from Packagist filtered by type and tag.

static array
request(string $url)

Make a request to the Packagist API.

Details

static array getPackages(string $type = '')

Get a list op packages from Packagist filtered by type and tag.

Parameters

string $type

Return Value

array The list of packages

static private array request(string $url)

Make a request to the Packagist API.

Parameters

string $url

Return Value

array The response data