Skip to content

Instantly share code, notes, and snippets.

@aquilax
Created January 14, 2016 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aquilax/6de203ee341c72a73767 to your computer and use it in GitHub Desktop.
Save aquilax/6de203ee341c72a73767 to your computer and use it in GitHub Desktop.
PrestaShop REPL
<?php
//
// PHP REPL with initialized Prestashop environment
//
// Inspired by https://gist.github.com/Vinai/5579309
//
$configFile = '../config/config.inc.php';
// Search for boris in PHP's default include path and Magento's lib directory
require_once '/home/vagrant/.composer/vendor/d11wtq/boris/lib/autoload.php';
umask(0);
require_once $configFile;
$boris = new \Boris\Boris('presta> ');
$boris->start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment