Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Worker Bundle Laravel Package

coka/worker-bundle

View on GitHub
Deep Wiki
Context7

Getting Started With OkaWorkerBundle

This bundle help the user input high quality data into your web services REST.

Prerequisites

The OkaWorkerBundle has the following requirements:

  • PHP 7.2+
  • Symfony 4.4+

Installation

Installation is a quick (I promise!) 3 step process:

  1. Download OkaWorkerBundle
  2. Register the Bundle
  3. Use bundle and enjoy!

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require coka/worker-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Register the Bundle

Then, register the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project (Flex did it automatically):

return [
    //...
    Oka\WorkerBundle\OkaWorkerBundle::class => ['all' => true],
]

Step 3: Use the bundle is simple

Now that the bundle is installed.

Create worker class.

// App\Worker\Worker.php

namespace App\Worker;

use Oka\WorkerBundle\AbstractWorker;

class FooWorker extends AbstractWorker
{
    public static function getName(): string
	{
		return 'foo';
	}
	
    protected function doRun(array $options = []): bool
	{
		//...
	}
}

Use the command line interface.

php bin/console oka:worker:run-worker foo
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware