Download the PHP package b7s/laravel-queue-flow without Composer

On this page you can find all versions of the php package b7s/laravel-queue-flow. 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 laravel-queue-flow

Laravel Queue Flow

A Laravel Queue wrapper system, simplifying queue management without creating separate Job classes.

Features

Requirements

Installation

Install the package via Composer:

The service provider will be automatically registered.

Publish Configuration (Optional)

This package has some configurations, but it doesn't override the default Laravel settings, which you can modify in config/queue.php.

Usage

Basic Usage

Using global helper function qflow:

Auto-dispatch on Destruction

The queue will automatically dispatch when the object is destroyed if a callback was added:

Know more about the dispatch() return value here.

Using the Queue instance directly:

Delayed Jobs

Dependency Injection

Resolve the queue via Laravel's container and keep your classes clean:

You can pass an array of closures to add() to add multiple jobs:

Helper Function

Use the global qflow() helper to configure jobs inline.

Jobs dispatch automatically by default

You can change this behavior changing the config auto_dispatch_on_queue_flow_helper or by setting the .env variable QUEUE_FLOW_AUTO_DISPATCH_ON_HELPER to false:

Disable auto-dispatch when you need more control (set the second parameter - autoDispatch - to false):

Without Relations

Prevent Eloquent model relations from being serialized:

Unique Jobs

Ensure a job is only queued once:

Unique Until Processing

Job is unique only until it starts processing:

Encrypted Jobs

Encrypt the job payload:

Failure Handling

Execute a callback when a job fails:

The failure callback receives the exception that caused the job to fail, allowing you to:

Rate Limiting

Apply rate limiting to jobs:

Configure rate limiters in config/queue-flow.php:

Custom Queue and Connection

Chaining Multiple Options

The methods follow the same pattern and the same naming convention as Laravel (see Laravel Documentation).

Configuration

The configuration file allows you to set defaults:

How It Works

QueueFlow Queue abstracts Laravel's queue system by:

  1. Wrapping closures in specialized Job classes
  2. Applying configurations through a fluent interface
  3. Dispatching jobs using Laravel's native queue system
  4. Managing state through service classes

Testing

Running Tests

The package includes a comprehensive test suite covering all features. For detailed documentation, see TESTING.md.

Test Coverage

To generate a test coverage report (requires Xdebug or PCOV):

Key Test Scenarios

  1. Basic Queue Operations

    • Job dispatching
    • Queue configuration
    • Error handling
  2. Helper Function

  3. Database Integration

    • Transaction handling
    • CRUD operations
    • Rollback on failure
  4. Edge Cases
    • Large payloads
    • Error conditions
    • Concurrency issues

License

This package is open-sourced software licensed under the MIT license.

Credits


All versions of laravel-queue-flow with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^11.0|^12.0
illuminate/queue Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
laravel/serializable-closure Version ^1.3|^2.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 b7s/laravel-queue-flow contains the following files

Loading the files please wait ...