Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhedstrom/drupaldriver
A collection of drivers for controlling Drupal.
https://github.com/jhedstrom/drupaldriver
drupal drupal-8 php
Last synced: 2 days ago
JSON representation
A collection of drivers for controlling Drupal.
- Host: GitHub
- URL: https://github.com/jhedstrom/drupaldriver
- Owner: jhedstrom
- License: gpl-2.0
- Created: 2014-10-02T09:29:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T16:18:03.000Z (4 months ago)
- Last Synced: 2025-02-07T09:04:45.628Z (2 days ago)
- Topics: drupal, drupal-8, php
- Language: PHP
- Size: 805 KB
- Stars: 64
- Watchers: 9
- Forks: 98
- Open Issues: 74
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://github.com/jhedstrom/DrupalDriver/actions/workflows/ci.yml/badge.svg)](https://github.com/jhedstrom/DrupalDriver/actions/workflows/ci.yml)
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": "~2.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);
```### Contributing
Features and bug fixes are welcome! First-time contributors can jump in with the
issues tagged [good first issue](https://github.com/jhedstrom/DrupalDriver/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).See [CONTRIBUTING.md](https://github.com/jhedstrom/DrupalDriver/blob/master/CONTRIBUTING.md) for more information.
### Release notes
See [CHANGELOG](CHANGELOG.MD).