X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fdrupal-driver%2FREADME.md;fp=vendor%2Fdrupal%2Fdrupal-driver%2FREADME.md;h=5116aa1334cb995ef1eb46b99f4a8c789843ecf8;hp=0000000000000000000000000000000000000000;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68 diff --git a/vendor/drupal/drupal-driver/README.md b/vendor/drupal/drupal-driver/README.md new file mode 100644 index 000000000..5116aa133 --- /dev/null +++ b/vendor/drupal/drupal-driver/README.md @@ -0,0 +1,61 @@ +[![Build Status](https://travis-ci.org/jhedstrom/DrupalDriver.svg?branch=master)](https://travis-ci.org/jhedstrom/DrupalDriver) + +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. + +[Read the full documentation](http://drupal-drivers.readthedocs.org) + +[![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) + +### Drivers + +These drivers support Drupal versions 7 and 8. + +* Blackbox +* Direct Drupal API bootstrap +* Drush + +### Installation + +``` json +{ + "require": { + "drupal/drupal-driver": "~1.0" + } +} +``` + +``` bash +$> curl -sS http://getcomposer.org/installer | php +$> php composer.phar install +``` + +### Usage + +``` php +setCoreFromVersion(); + +// Bootstrap Drupal. +$driver->bootstrap(); + +// Create a node. +$node = (object) array( + 'type' => 'article', + 'uid' => 1, + 'title' => $driver->getRandom()->name(), +); +$driver->createNode($node); +```