2017 © Pedro Peláez
 

library boris-loader

Loads project specific contexts into Boris REPL

image

tobiassjosten/boris-loader

Loads project specific contexts into Boris REPL

  • Thursday, August 4, 2016
  • by tobiassjosten
  • Repository
  • 5 Watchers
  • 30 Stars
  • 21,510 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

boris-loader

Loads project specific contexts into d11wtq/boris REPL., (*1)

Currently supports Composer, Drupal, eZ Publish and Symfony., (*2)

Build Status, (*3)

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., (*4)

<?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., (*5)

<?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().

Symfony2 provider optional arguments

You can optionally pass the Symfony environment name and debug mode to the Symfony2 provider as arguments. The arguments default to 'dev' environment and true for debug mode., (*6)

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

See this document for an example of using ENV vars to make this dynamic in your ~/.borisrc, (*7)

The Versions

04/08 2016

dev-master

9999999-dev

Loads project specific contexts into Boris REPL

  Sources   Download

MIT

The Requires

 

The Development Requires