wesnick / drupal-bootstrap
Lightweight wrapper to bootstrap Drupal in OO context to make native API calls.
Installs: 617
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/wesnick/drupal-bootstrap
Requires
- symfony/console: ~2
- symfony/yaml: ~2
This package is auto-updated.
Last update: 2025-09-29 01:37:30 UTC
README
Lightweight wrapper to bootstrap Drupal in OO context to make native API calls.
Work-in-progress
Usage
<?php require_once 'vendor/autoload.php'; $drupal = new \Wesnick\DrupalBootstrap\Drupal7("/path/to/drupal"); $drupal->doBootstrap(); // Do stuff with Drupal API $node = node_load(1);
Installation
Use composer.
Requirements
PHP 5.3
Contributing
Fork and issue a Pull Request.
Running the Tests
$ phpunit
Acknowledgements
The basic functionality is borrowed from drupal/drupalextensions
License
Released under the MIT License. See the bundled LICENSE file for details.