Skip to content

Instantly share code, notes, and snippets.

@woledzki
Last active September 28, 2015 23:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woledzki/1512137 to your computer and use it in GitHub Desktop.
Save woledzki/1512137 to your computer and use it in GitHub Desktop.
How to run hoborgLabs dashboard from phar file
<?php
$rootPath = getenv('DASHBOARD_ROOT') ? getenv('DASHBOARD_ROOT') : __DIR__ . '/..';
require_once "{$rootPath}/dashboard.phar";
$kernel = new \Hoborg\Dashboard\Kernel($rootPath);
$kernel->setDefaultParam('conf', 'demo');
$kernel->handle(array_merge($_GET, $_POST));
@josegonzalez
Copy link

the phar file is no longer available?

@woledzki
Copy link
Author

doh!... whole get.hoborglabs.com is down. I'm investigating now.

@woledzki
Copy link
Author

should be back now.

btw. composer.json is coming soon, and new features.
Let me know if you need any help with installation/configuration.

trello board: https://trello.com/board/dashboard/4ea7062eaed5f360a418c6f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment