Download the PHP package magicalella/yii2-backgroundtask without Composer

On this page you can find all versions of the php package magicalella/yii2-backgroundtask. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-backgroundtask

Estensione per export in background dei dati in vista index grid

Installazione

Il modo migliore per installare questa estensione è tramite composer.

Lancia

o aggiungi

nella sezione require del tuo file "composer.json".

E avvia la migrazione dei file

yii migrate/up --migrationPath=@vendor/magicalella/yii2-backgroundtask/migrations --interactive=0

Può essere creato manualmente. Vale a dire, la tabella backgroundtask campi:

    id(primaryKey, AUTO_INCREMENT);
    action(varchar(350));
    id_user(int(11));
    progress(int(2));
    params(text);
    output(text);
    log(text);
    stato(int(1));

Installazione

Nel file: backend/config/main.php e console/config/main.php se yii advanced se Yii basic config/web.php e config/console.php scrivi

    'components' => [
    ...
        'backgroundtask' => [
            'class'   => 'magicalella\backgroundtask\Module',
            'site_realpath' => '/var/www/vhosts/miosito.com',
            'site_root' => 'https://www.miosito.com'
        ],
    ...
    ]

I file esportati verranno esportati nella cartella @uploads/backgroundtask

Attivazione

Creazione task Inserire in view Index:

Per creare il task utilizzare il Widget

magicalella\backgroundtask\widgets\BackgroundTaskWidget;

in _protected\console\controllers

Copia il file src/console/BackgroundtaskController.php

OVERRIDE VIEWS

Se vuoi fare l'override dell view puoi farlo impostando il percorso in cui metterai gli override nel file di _protected/backend/config/main.php es:

    'components' => [
        ...
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@webroot/themes/loyalty3.0/views',
                    '@vendor/magicalella/yii2-backgroundtask/views' => '@app/views',//file nella cartella _protected/backend/views
                ],
                'baseUrl' => '@web/themes/loyalty3.0',
            ],
        ],
        ...
    ]

IMPORTANTE:

Il tuo server deve permettere il comando shell_exec

MANUTENZIONE:

Aggiungi questa chiamata al tuo pannello Crontask per mantenere pulita la cartella Export che col tempo andrebbe a riempirsi Decidi tu la schedulazione in base alla quantità di file creati

php _protected/yii backgroundtask-console/clean-export

Andrà ad eliminare gli export , compresi i file, con data di creazione più vecchia di 6 mesi


All versions of yii2-backgroundtask with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
yiisoft/yii2 Version ~2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package magicalella/yii2-backgroundtask contains the following files

Loading the files please wait ...