1. Go to this page and download the library: Download symball/report 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/ */
symball / report example snippets
php
public function registerBundles()
{
$bundles = [
// ...
new Symball\ReportBundle\SymballReportBundle(),
// ...
];
...
}
php
// If only using a single set
$reportBuilder->newSet();
$unprocessedData = $reportBuilder->query()->run();
// For handling multiple sets
while($reportBuilder->newSet()) {
$unprocessedData = $reportBuilder->query()->run();
}
php
$reportPattern = $container->get('symball_report.pattern');
// Get a simple array list of available patterns
$availablePatterns = $reportPattern->getPatternsLoaded();
// Draw column headings for the current data set
$reportPattern->run('set_headings', $reportBuilder);
// Fill in the data set values
$reportPattern->run('data_set', $reportBuilder);
// Draw the data point index (x axis)
$reportPattern->run('data_point_index', $reportBuilder);
php
use Symball\ReportBundle\Service\ReportBuilder;
use Symball\ReportBundle\Interfaces\Pattern;
class YourPattern implements Pattern {
public function run(ReportBuilder &$context) {
// Do something with the report builder
}
}