phug-php/dev-tool

View on GitHub
bin/phug-dev

Summary

Maintainability
Test Coverage
#!/usr/bin/env php
<?php

use Phug\DevTool\Application;

//Check for autoload file
$cwd = getcwd();
$path = "$cwd/vendor/autoload.php";

if (!file_exists($path)) {
    echo "Composer's autoload.php not found in $cwd.";
    exit(1);
}

require $path;

(new Application)->run();