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
Requires
- php: ^5.6|^7
- guzzlehttp/guzzle: ^6.3
- tightenco/collect: ^5.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
- phpunit/phpunit: ^5.7
- symfony/var-dumper: ^3.4
This package is auto-updated.
Last update: 2024-10-25 18:02:15 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();