1. Go to this page and download the library: Download virge/graph library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
//reactor.php
$BASE_DIR = dirname(__FILE__) . '/';
$loader = include $BASE_DIR . '../vendor/autoload.php';
$loader->add('Virge', $BASE_DIR . '../');
class Reactor extends Virge\Core\BaseReactor
{
public function registerCapsules($capsules = [])
{
parent::registerCapsules([
new \Virge\Graph\GraphCapsule(),
new \Virge\Graphite\GraphiteCapsule(),
new \Virge\Cli\Capsule(),
new \Virge\ORM\Capsule(),
new \Virge\Database\Capsule(),
]);
}
}
//