Skip to content

fbrisa/BfaProgressMonitorBundle

Repository files navigation

ProgressMonitorBundle

Requirements

Installation

Add to composer.json:

"require" : {
    "bfa/progressmonitorbundle": "^1.0"
},
"repositories" : [{
    "type" : "vcs",
    "url" : "https://github.com/fbrisa/BfaProgressMonitorBundle.git"
}]

Add to you app/AppKernel.php:

new Bfa\ProgressMonitorBundle\BfaProgressMonitorBundle(),

Execute the query to generate the table:

CREATE TABLE bfa_progress (id INT AUTO_INCREMENT NOT NULL, data_creazione DATETIME NOT NULL, max INT NOT NULL, pos INT NOT NULL, uid VARCHAR(255) NOT NULL, data VARCHAR(1024) NOT NULL, request_stop TINYINT(1) DEFAULT '0' NOT NULL, request_stop_done TINYINT(1) DEFAULT '0' NOT NULL, INDEX bfaprogressuid_idx (uid), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = Memory;

Geenrate symlinks symfony2:

php app/console assets:install --symlink web

symfony3:

php bin/console assets:install --symlink web

Add route to app/routing.tml

bfa_progress_monitor_homepage:
    resource: "@BfaProgressMonitorBundle/Controller/"
    type:     annotation

Examples:

See doc folder for a controller and twig example

About

Symfony bundle to handle long server task with a bootstrap progress bar on client

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors