wesnick/drupal-bootstrap

There is no license information available for the latest version (1.0.0) of this package.

Lightweight wrapper to bootstrap Drupal in OO context to make native API calls.

1.0.0 2014-11-20 14:41 UTC

This package is auto-updated.

Last update: 2024-03-29 02:50:19 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.