1 [![Build Status](https://travis-ci.org/jhedstrom/DrupalDriver.svg?branch=master)](https://travis-ci.org/jhedstrom/DrupalDriver)
3 Provides a collection of light-weight drivers with a common interface for interacting with [Drupal](http://drupal.org). These are generally intended for testing, and are not meant to be API-complete.
5 [Read the full documentation](http://drupal-drivers.readthedocs.org)
7 [![Latest Stable Version](https://poser.pugx.org/drupal/drupal-driver/v/stable.svg)](https://packagist.org/packages/drupal/drupal-driver) [![Total Downloads](https://poser.pugx.org/drupal/drupal-driver/downloads.svg)](https://packagist.org/packages/drupal/drupal-driver) [![License](https://poser.pugx.org/drupal/drupal-driver/license.svg)](https://packagist.org/packages/drupal/drupal-driver) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jhedstrom/DrupalDriver/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jhedstrom/DrupalDriver/?branch=master)
11 These drivers support Drupal versions 7 and 8.
14 * Direct Drupal API bootstrap
22 "drupal/drupal-driver": "~1.0"
28 $> curl -sS http://getcomposer.org/installer | php
29 $> php composer.phar install
37 use Drupal\Driver\DrupalDriver;
38 use Drupal\Driver\Cores\Drupal8;
40 require 'vendor/autoload.php';
46 $uri = 'http://d8.devl';
48 $driver = new DrupalDriver($path, $uri);
49 $driver->setCoreFromVersion();
55 $node = (object) array(
58 'title' => $driver->getRandom()->name(),
60 $driver->createNode($node);