Supervizor je aplikace na vizualizaci výdajů, kerou vytvořili pracovníci Ministerstva financí České republiky. Samotné ministerstvo zveřejňuje své výdaje na http://data.mfcr.cz/supervizor/
Uvítáme další použití i úpravy/opravy zdrojového kódu, proto ho dáváme k dispozici pod licencí GNU GPL v3
- PHP 5.6>
- MySQL / MariaDB / PostgreSQL
- Nginx / Apache
- Linux
composer install
bower install
- create
/app/config/config.local.neon
with own parameters, from/app/config/config.local.neon.example
template - run
chmod -R a+rw temp log www/webtemp
- run
php www/index.php orm:s:c
to create default database schema - run
php www/index.php orm:default-data:load
to load default data. WARNING: this command DROP ALL DATA IN DATABASE! - run
php www/index.php importer:import:all
to import mf2016 data configured inapp/config/importer.neon
(you can configure your imports there)
For you own data source you will need two things:
- Create your own data parser in
extensions/Importer/parsers/
, you can useMfcr.php
as example - Configure your data sources in
config/importer.neon
:
importer:
target: App\Model\ImportTarget
imports:
# here you can configure your custom imports
mf: #Import group key
title: "Ministerstvo financí" #Import group name
default: true # Is default import group ?
datasets: # List of datasets
mf2016: # Dataset key
title: "Rok 2016" #Data set title
description: "Přehled faktur Ministerstva financí" #Data set description
source: "http://data.mfcr.cz/cs/api/3/action/resource_show?id=aec18a6a-0d8f-49a4-a8e7-ae0fbd32125f" #Data set source, it can be file:// http:// ftp://
homepage: "http://data.mfcr.cz/cs/dataset/prehled-faktur-ministerstva-financi-cr" # Homepage of source (if any, used only for info)
parser: Extensions\Importer\Parsers\Mfcr #Parser used to parse this dataset
default: true # Is default ? (data from this dataset will be shown as default configuration when landing on homepate)
- run
php www/index.php orm:validate-schema
to validate doctrine schema