PHP Classes

File: src/console

Recommend this page to a friend!
  Classes of Joseluis Laso   PHP Stats Graphs   src/console   Download  
File: src/console
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Stats Graphs
Generate SVG charts from sample data
Author: By
Last change:
Date: 7 years ago
Size: 434 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

namespace JLaso\SimpleStats;

require_once
__DIR__ . '/../vendor/autoload.php';

use
JLaso\SimpleStats\Command\GenGraphCommand;
use
JLaso\SimpleStats\Command\SeedCommand;
use
Symfony\Component\Yaml\Yaml;
use
Symfony\Component\Console\Application;

$application = new Application();
$application->addCommands(
    array(
        new
SeedCommand(),
        new
GenGraphCommand(),
    )
);
$application->run();