Download the PHP package sunvalley-technologies/php-task-manager-symfony-bundle without Composer

On this page you can find all versions of the php package sunvalley-technologies/php-task-manager-symfony-bundle. 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 php-task-manager-symfony-bundle

PHP Task Manager - Symfony Bundle

Build Status

See main repository for base usage

This bundle integrates the task manager to Symfony. Supports Symfony ^3.0 and ^4.0.

Installing

composer require sunvalley-technologies/php-task-manager-symfony-bundle

Make sure to add the bundle to your Kernel's bundles.

Configuration

Complete configuration looks like following:

`

From which task_queue is the only required configuration parameter.

task_storage is optional and if given is used to store task information.

If you have a non-standard Kernel have a look and replace the SunValley\TaskManager\Symfony\Task\TaskEnvironment class and AbstractSymfonyTask to provide a proper Kernel for your tasks.

Generating and Submitting Tasks

It is necessary to generate tasks to control exactly what each task is doing. This can be thought like generating controllers.

All kernel dependent classes should extend AbstractSymfonyTask and they are synchronous tasks by default.

Here is a sample task that persist a doctrine entity:

``

The call to finishTask or failTask is optional unlike on plain task manager tasks. Any exception that is thrown however is caught and reported back with failTask($error).

To submit a task, the task should be constructed and then it can be submitted with the client as on the example service above.

Task constructors should never block otherwise the main task manager loop can also get blocked.

Starting task manager

Console command task:manager can be used to start the task manager.

In order to attach to your running loops that you also started with Symfony there is a factory for task manager SunValley\TaskManager\Symfony\Task\TaskManagerFactory.

Task manager uses the loop php_task_manager_loop defined in its configuration by default.

Many of these can be changed with a compiler pass in case a customization is necessary.

Other Topics

Doctrine Entity Repository Task

\SunValley\TaskManager\Symfony\Doctrine\EntityRepositoryTask task can be used to offload synchronous doctrine calls to background for async apps. This task does not make sense for usual work queues but can be useful for async apps that partially depend on doctrine for ORM access.


All versions of php-task-manager-symfony-bundle with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
symfony/framework-bundle Version ^3.0|^4.0|^5.0
symfony/validator Version ^3.0|^4.0|^5.0
sunvalley-technologies/php-task-manager Version ^1.2.4
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 sunvalley-technologies/php-task-manager-symfony-bundle contains the following files

Loading the files please wait ....