Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.58 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.58 KB

boris-loader

Loads project specific contexts into d11wtq/boris REPL.

Currently supports Composer, Drupal, eZ Publish and Symfony.

Build Status

Usage

The easiest (and recommended) way of using boris-loader is by hooking into Boris via your .borisrc file, either in your $HOME or your current working directory. Simply clone this repository somewhere and add the following lines to your .borisrc.

<?php
require 'path/to/cloned/boris-loader.php';
\Boris\Loader\Loader::load($boris);

By default, boris-loader will try to load any Composer configuration it can find. If you are working with projects like Symfony or Drupal, you can have boris-loader look for and run their respective bootstrap.

<?php
require __DIR__.'/../../../../boris-loader.php';
\Boris\Loader\Loader::load($boris, array(
    new \Boris\Loader\Provider\Symfony2(),
    new \Boris\Loader\Provider\Composer(),
));

Providers

  • Composer: \Boris\Loader\Provider\Composer().
  • Drupal 7: \Boris\Loader\Provider\Drupal7().
  • Drupal 8: \Boris\Loader\Provider\Drupal8().
  • eZ Publish: \Boris\Loader\Provider\EzPublish().
  • Symfony2: \Boris\Loader\Provider\Symfony2().