Skip to content

Instantly share code, notes, and snippets.

Avatar
👽
In code we trust

Bruno Rodrigues bruno-rodrigues

👽
In code we trust
  • Sydney, Australia
View GitHub Profile
@reinink
reinink / bootstrap.php
Created Feb 20, 2014
Using illuminate/container outside of Laravel
View bootstrap.php
<?php
// Vendor includes
include $config->base_path . '/libraries/Vendor/autoload.php';
// Include configuration file
$config = include('../config.php');
// Create IoC container
$ioc = new \Illuminate\Container\Container;