Skip to content
A PHP library for the Drupal.org API.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests/Entity
.gitignore
.php_cs.dist
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

PHP library for the Drupal.org API

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();
You can’t perform that action at this time.