opdavies/drupalorg-api-php

There is no license information available for the latest version (0.2.0) of this package.

PHP library for the Drupal.org API

0.2.0 2018-04-16 13:34 UTC

README

This library provides convenient wrapper functions for Drupal.org’s REST API. The API is documented here.

Examples

Nodes

$nids = [107871, 2945793, 1306976];
$query = new NodeQuery();
$query->setOptions(['query' => ['type' => Node::TYPE_MODULE, 'nid' => $nids]]);
$nodes = $query->execute()->getContents()->all();

Users

$uids = [1, 381388];
$query = new UserQuery();
$query->setOptions(['query' => ['uid' => $uids]]);
$users = $query->execute()->getContents()->all();