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.

Maintainers

Package info

github.com/wesnick/drupal-bootstrap

pkg:composer/wesnick/drupal-bootstrap

Statistics

Installs: 617

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2014-11-20 14:41 UTC

This package is auto-updated.

Last update: 2026-03-01 00:20:42 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.